mirror of
https://github.com/gchq/CyberChef
synced 2024-11-14 16:47:07 +00:00
nodeFlags needs quote change
This commit is contained in:
parent
2991e7d1fe
commit
2dbd647868
2 changed files with 8 additions and 8 deletions
2
.nvmrc
2
.nvmrc
|
@ -1 +1 @@
|
|||
lts/dubnium
|
||||
lts/gallium
|
||||
|
|
14
Gruntfile.js
14
Gruntfile.js
|
@ -351,15 +351,15 @@ module.exports = function (grunt) {
|
|||
command: "git gc --prune=now --aggressive"
|
||||
},
|
||||
sitemap: {
|
||||
command: "node --experimental-modules --experimental-json-modules --no-warnings --no-deprecation src/web/static/sitemap.mjs > build/prod/sitemap.xml",
|
||||
command: `node ${nodeFlags} src/web/static/sitemap.mjs > build/prod/sitemap.xml`,
|
||||
sync: true
|
||||
},
|
||||
generateConfig: {
|
||||
command: chainCommands([
|
||||
"echo '\n--- Regenerating config files. ---'",
|
||||
"echo [] > src/core/config/OperationConfig.json",
|
||||
"node ${nodeFlags} src/core/config/scripts/generateOpsIndex.mjs",
|
||||
"node ${nodeFlags} src/core/config/scripts/generateConfig.mjs",
|
||||
`node ${nodeFlags} src/core/config/scripts/generateOpsIndex.mjs`,
|
||||
`node ${nodeFlags} src/core/config/scripts/generateConfig.mjs`,
|
||||
"echo '--- Config scripts finished. ---\n'"
|
||||
]),
|
||||
sync: true
|
||||
|
@ -367,7 +367,7 @@ module.exports = function (grunt) {
|
|||
generateNodeIndex: {
|
||||
command: chainCommands([
|
||||
"echo '\n--- Regenerating node index ---'",
|
||||
"node ${nodeFlags} src/node/config/scripts/generateNodeIndex.mjs",
|
||||
`node ${nodeFlags} src/node/config/scripts/generateNodeIndex.mjs`,
|
||||
"echo '--- Node index generated. ---\n'"
|
||||
]),
|
||||
sync: true
|
||||
|
@ -395,21 +395,21 @@ module.exports = function (grunt) {
|
|||
testCJSNodeConsumer: {
|
||||
command: chainCommands([
|
||||
`cd ${nodeConsumerTestPath}`,
|
||||
"node ${nodeFlags} cjs-consumer.js",
|
||||
`node ${nodeFlags} cjs-consumer.js`,
|
||||
]),
|
||||
stdout: false,
|
||||
},
|
||||
testESMNodeConsumer: {
|
||||
command: chainCommands([
|
||||
`cd ${nodeConsumerTestPath}`,
|
||||
"node ${nodeFlags} esm-consumer.mjs",
|
||||
`node ${nodeFlags} esm-consumer.mjs`,
|
||||
]),
|
||||
stdout: false,
|
||||
},
|
||||
testESMDeepImportNodeConsumer: {
|
||||
command: chainCommands([
|
||||
`cd ${nodeConsumerTestPath}`,
|
||||
"node ${nodeFlags} esm-deep-import-consumer.mjs",
|
||||
`node ${nodeFlags} esm-deep-import-consumer.mjs`,
|
||||
]),
|
||||
stdout: false,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue