Comparing version 2.7.13 to 2.7.14
@@ -11,3 +11,2 @@ "use strict"; | ||
}); | ||
const _fs = require("fs"); | ||
const _path = require("path"); | ||
@@ -47,7 +46,2 @@ const _promises = require("fs/promises"); | ||
} | ||
validateOptions(options) { | ||
if (!(0, _fs.existsSync)(options.npmCmd)) { | ||
throw new Error(`NPM Script Runner: ${this.options.npmCmd} does not exist`); | ||
} | ||
} | ||
async shouldRun(target) { | ||
@@ -104,7 +98,9 @@ // By convention, do not run anything if there is no script for this task defined in package.json (counts as "success") | ||
], | ||
// This is required for Windows due to https://nodejs.org/en/blog/vulnerability/april-2024-security-releases-2 | ||
shell: true, | ||
env: { | ||
...process.env, | ||
...process.stdout.isTTY && { | ||
FORCE_COLOR: "1" | ||
}, | ||
...process.env, | ||
...npmRunNodeOptions && { | ||
@@ -150,5 +146,4 @@ NODE_OPTIONS: npmRunNodeOptions | ||
this.options = options; | ||
this.validateOptions(options); | ||
} | ||
} | ||
_define_property(NpmScriptRunner, "gracefulKillTimeout", 2500); |
{ | ||
"name": "lage", | ||
"version": "2.7.13", | ||
"version": "2.7.14", | ||
"repository": { | ||
@@ -26,4 +26,4 @@ "type": "git", | ||
"devDependencies": { | ||
"@lage-run/cli": "^0.16.7", | ||
"@lage-run/scheduler": "^1.1.13", | ||
"@lage-run/cli": "^0.17.0", | ||
"@lage-run/scheduler": "^1.2.0", | ||
"backfill-config": "6.4.1", | ||
@@ -30,0 +30,0 @@ "dts-bundle-generator": "^7.2.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
15021487
13386
6