From 05d7140d46e2b5300d4dc9a60450eed956c95420 Mon Sep 17 00:00:00 2001 From: Hirotaka Tagawa / wafuwafu13 Date: Tue, 21 Sep 2021 18:20:20 +0900 Subject: [PATCH] Chore: document target global in Makefile.js (#15084) --- Makefile.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile.js b/Makefile.js index c2d3442f5bd..c9b5465e9e1 100644 --- a/Makefile.js +++ b/Makefile.js @@ -3,7 +3,6 @@ * @author nzakas */ -/* global target -- TODO: figure out where this is coming from and update this description */ /* eslint no-use-before-define: "off", no-console: "off" -- CLI */ "use strict"; @@ -28,6 +27,12 @@ const checker = require("npm-license"), { CLIEngine } = require("./lib/cli-engine"), builtinRules = require("./lib/rules/index"); +/* global target -- global.target is declared in `shelljs/make.js` */ +/** + * global.target = {}; + * @see https://github.com/shelljs/shelljs/blob/124d3349af42cb794ae8f78fc9b0b538109f7ca7/make.js#L4 + * @see https://github.com/DefinitelyTyped/DefinitelyTyped/blob/3aa2d09b6408380598cfb802743b07e1edb725f3/types/shelljs/make.d.ts#L8-L11 + */ const { cat, cd, cp, echo, exec, exit, find, ls, mkdir, pwd, rm, test } = require("shelljs"); //------------------------------------------------------------------------------