forked from microsoft/TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gulp.js
19 lines (15 loc) · 629 Bytes
/
.gulp.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const cp = require("child_process");
const path = require("path");
const chalk = require("chalk");
const argv = process.argv.slice(2);
// --tasks-simple is used by VS Code to infer a task list; try and keep that working.
if (!argv.includes("--tasks-simple")) {
console.error(chalk.yellowBright("Warning: using gulp shim; please consider running hereby directly."));
}
const args = [
...process.execArgv,
path.join(__dirname, "node_modules", "hereby", "bin", "hereby.js"),
...argv,
];
const { status } = cp.spawnSync(process.execPath, args, { stdio: "inherit" });
process.exit(status ?? 1);