Skip to content

Commit

Permalink
Chore: document target global in Makefile.js (#15084)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hirotaka Tagawa / wafuwafu13 committed Sep 21, 2021
1 parent 0a1a850 commit 05d7140
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile.js
Expand Up @@ -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";

Expand All @@ -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");

//------------------------------------------------------------------------------
Expand Down

0 comments on commit 05d7140

Please sign in to comment.