فهرست منبع

nodeFlags needs quote change

John L 3 سال پیش
والد
کامیت
2dbd647868
2فایلهای تغییر یافته به همراه8 افزوده شده و 8 حذف شده
  1. 1 1
      .nvmrc
  2. 7 7
      Gruntfile.js

+ 1 - 1
.nvmrc

@@ -1 +1 @@
-lts/dubnium
+lts/gallium

+ 7 - 7
Gruntfile.js

@@ -351,15 +351,15 @@ module.exports = function (grunt) {
                 command: "git gc --prune=now --aggressive"
                 command: "git gc --prune=now --aggressive"
             },
             },
             sitemap: {
             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
                 sync: true
             },
             },
             generateConfig: {
             generateConfig: {
                 command: chainCommands([
                 command: chainCommands([
                     "echo '\n--- Regenerating config files. ---'",
                     "echo '\n--- Regenerating config files. ---'",
                     "echo [] > src/core/config/OperationConfig.json",
                     "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'"
                     "echo '--- Config scripts finished. ---\n'"
                 ]),
                 ]),
                 sync: true
                 sync: true
@@ -367,7 +367,7 @@ module.exports = function (grunt) {
             generateNodeIndex: {
             generateNodeIndex: {
                 command: chainCommands([
                 command: chainCommands([
                     "echo '\n--- Regenerating node index ---'",
                     "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'"
                     "echo '--- Node index generated. ---\n'"
                 ]),
                 ]),
                 sync: true
                 sync: true
@@ -395,21 +395,21 @@ module.exports = function (grunt) {
             testCJSNodeConsumer: {
             testCJSNodeConsumer: {
                 command: chainCommands([
                 command: chainCommands([
                     `cd ${nodeConsumerTestPath}`,
                     `cd ${nodeConsumerTestPath}`,
-                    "node ${nodeFlags} cjs-consumer.js",
+                    `node ${nodeFlags} cjs-consumer.js`,
                 ]),
                 ]),
                 stdout: false,
                 stdout: false,
             },
             },
             testESMNodeConsumer: {
             testESMNodeConsumer: {
                 command: chainCommands([
                 command: chainCommands([
                     `cd ${nodeConsumerTestPath}`,
                     `cd ${nodeConsumerTestPath}`,
-                    "node ${nodeFlags} esm-consumer.mjs",
+                    `node ${nodeFlags} esm-consumer.mjs`,
                 ]),
                 ]),
                 stdout: false,
                 stdout: false,
             },
             },
             testESMDeepImportNodeConsumer: {
             testESMDeepImportNodeConsumer: {
                 command: chainCommands([
                 command: chainCommands([
                     `cd ${nodeConsumerTestPath}`,
                     `cd ${nodeConsumerTestPath}`,
-                    "node ${nodeFlags} esm-deep-import-consumer.mjs",
+                    `node ${nodeFlags} esm-deep-import-consumer.mjs`,
                 ]),
                 ]),
                 stdout: false,
                 stdout: false,
             },
             },