Revision 48b6b8b1d9718c968a4c767ff806b308401cdeaa authored by Mateusz BurzyƄski on 10 January 2023, 21:45:38 UTC, committed by GitHub on 10 January 2023, 21:45:38 UTC
1 parent 67cdaf9
Raw File
.gulp.js
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);
back to top