@commercetools-frontend/mc-scripts 27.9.0 → 27.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.dev.js +1 -1
  2. package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.prod.js +1 -1
  3. package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.esm.js +1 -1
  4. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.dev.js +17 -17
  5. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +17 -17
  6. package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +17 -17
  7. package/dist/{build-1d64eec3.esm.js → build-5a0c84e7.esm.js} +8 -8
  8. package/dist/{build-bfc565e1.cjs.dev.js → build-b9cbc1d1.cjs.dev.js} +8 -8
  9. package/dist/{build-ffa10fc4.cjs.prod.js → build-cdeab3a8.cjs.prod.js} +8 -8
  10. package/dist/{build-vite-e4eeb1a3.cjs.dev.js → build-vite-0e8f3463.cjs.dev.js} +16 -14
  11. package/dist/{build-vite-377f721f.cjs.prod.js → build-vite-aa0e7242.cjs.prod.js} +16 -14
  12. package/dist/{build-vite-2ea8a241.esm.js → build-vite-ce3c4fb6.esm.js} +16 -14
  13. package/dist/commercetools-frontend-mc-scripts.cjs.dev.js +1 -1
  14. package/dist/commercetools-frontend-mc-scripts.cjs.prod.js +1 -1
  15. package/dist/commercetools-frontend-mc-scripts.esm.js +1 -1
  16. package/dist/{compile-html-f4ac88cc.cjs.dev.js → compile-html-8679f721.cjs.dev.js} +5 -2
  17. package/dist/{compile-html-025cd493.esm.js → compile-html-adfef598.esm.js} +4 -2
  18. package/dist/{compile-html-50fd05ec.cjs.prod.js → compile-html-b80f9651.cjs.prod.js} +5 -2
  19. package/dist/{config-sync-5a7916dc.cjs.dev.js → config-sync-2b56a941.cjs.dev.js} +17 -17
  20. package/dist/{config-sync-df11a5bf.cjs.prod.js → config-sync-41bc7f5e.cjs.prod.js} +17 -17
  21. package/dist/{config-sync-be573249.esm.js → config-sync-7031a7de.esm.js} +17 -17
  22. package/dist/{config-sync-ci-a34b7b54.esm.js → config-sync-ci-1866c188.esm.js} +25 -20
  23. package/dist/{config-sync-ci-1d706e60.cjs.dev.js → config-sync-ci-6d12f2f3.cjs.dev.js} +27 -22
  24. package/dist/{config-sync-ci-9bb94255.cjs.prod.js → config-sync-ci-ea943de9.cjs.prod.js} +27 -22
  25. package/dist/{config-sync-helpers-5fbe31c5.cjs.dev.js → config-sync-helpers-36985f8c.cjs.dev.js} +57 -48
  26. package/dist/{config-sync-helpers-aaaa44ef.cjs.prod.js → config-sync-helpers-79ccaaad.cjs.prod.js} +55 -46
  27. package/dist/{config-sync-helpers-876b7d09.esm.js → config-sync-helpers-875ef4a4.esm.js} +56 -47
  28. package/dist/{create-postcss-config-3a80caef.cjs.dev.js → create-postcss-config-13cb1cb8.cjs.dev.js} +1 -1
  29. package/dist/{create-postcss-config-7d0b0ae1.cjs.prod.js → create-postcss-config-1eeb3d9d.cjs.prod.js} +1 -1
  30. package/dist/{create-postcss-config-a9f7c8a8.esm.js → create-postcss-config-390e8a52.esm.js} +1 -1
  31. package/dist/{create-webpack-config-for-development-ee3e94e6.cjs.prod.js → create-webpack-config-for-development-6608b4e4.cjs.prod.js} +15 -10
  32. package/dist/{create-webpack-config-for-development-a81db65f.cjs.dev.js → create-webpack-config-for-development-9a3a3a93.cjs.dev.js} +15 -10
  33. package/dist/{create-webpack-config-for-development-34ec7d5c.esm.js → create-webpack-config-for-development-dd95f3d5.esm.js} +15 -9
  34. package/dist/{create-webpack-config-for-production-585f2e76.cjs.dev.js → create-webpack-config-for-production-29b34b8c.cjs.dev.js} +8 -8
  35. package/dist/{create-webpack-config-for-production-f1317617.cjs.prod.js → create-webpack-config-for-production-2e6e5036.cjs.prod.js} +8 -8
  36. package/dist/{create-webpack-config-for-production-633d3891.esm.js → create-webpack-config-for-production-31bb3d24.esm.js} +8 -8
  37. package/dist/{credentials-storage-fd195144.cjs.dev.js → credentials-storage-1826f1a2.cjs.dev.js} +1 -1
  38. package/dist/{credentials-storage-ea1c16dc.cjs.prod.js → credentials-storage-60a63c81.cjs.prod.js} +1 -1
  39. package/dist/{credentials-storage-67deadc3.esm.js → credentials-storage-bfaa78f0.esm.js} +1 -1
  40. package/dist/{deployment-previews-set-ee6978a8.esm.js → deployment-previews-set-410cecf1.esm.js} +27 -22
  41. package/dist/{deployment-previews-set-5aeb990a.cjs.dev.js → deployment-previews-set-a04efad3.cjs.dev.js} +28 -22
  42. package/dist/{deployment-previews-set-d96668d6.cjs.prod.js → deployment-previews-set-bebd7a04.cjs.prod.js} +28 -22
  43. package/dist/{graphql-requests-d1683e27.cjs.dev.js → graphql-requests-1ea68584.cjs.dev.js} +8 -5
  44. package/dist/{graphql-requests-8a5d602b.cjs.prod.js → graphql-requests-98b1b779.cjs.prod.js} +8 -5
  45. package/dist/{graphql-requests-1bd861af.esm.js → graphql-requests-c491206a.esm.js} +8 -5
  46. package/dist/{i18n-message-complilation-7311cb29.cjs.dev.js → i18n-message-complilation-393d344a.cjs.prod.js} +1 -1
  47. package/dist/{i18n-message-complilation-7762da61.cjs.prod.js → i18n-message-complilation-3f80e8d6.cjs.dev.js} +1 -1
  48. package/dist/{i18n-message-complilation-21d3b0aa.esm.js → i18n-message-complilation-8aec9d1b.esm.js} +1 -1
  49. package/dist/{login-d51248e8.cjs.prod.js → login-a99d14e6.cjs.prod.js} +38 -60
  50. package/dist/{login-79d02906.esm.js → login-b935aede.esm.js} +37 -58
  51. package/dist/{login-62b53ebe.cjs.dev.js → login-cd99208a.cjs.dev.js} +38 -60
  52. package/dist/{optimizations-da5a0cfa.cjs.prod.js → optimizations-09a6638c.cjs.prod.js} +8 -5
  53. package/dist/{optimizations-54382f7b.esm.js → optimizations-1b3f8157.esm.js} +7 -5
  54. package/dist/{optimizations-56be74d6.cjs.dev.js → optimizations-640ffcac.cjs.dev.js} +8 -5
  55. package/dist/{package-5371f8ba.esm.js → package-15124b28.esm.js} +3 -4
  56. package/dist/{package-af294ed4.cjs.dev.js → package-90af7dfe.cjs.prod.js} +3 -4
  57. package/dist/{package-3539c84a.cjs.prod.js → package-98adb0d5.cjs.dev.js} +3 -4
  58. package/dist/{paths-39f22b8b.esm.js → paths-7bf7e88e.esm.js} +9 -4
  59. package/dist/{paths-7768b440.cjs.prod.js → paths-af1a725a.cjs.prod.js} +10 -4
  60. package/dist/{paths-b76fc753.cjs.dev.js → paths-ec3e3a7d.cjs.dev.js} +10 -4
  61. package/dist/{serve-b1c12985.cjs.dev.js → serve-760fc169.cjs.dev.js} +13 -14
  62. package/dist/{serve-3837602d.cjs.prod.js → serve-87ef7d4f.cjs.prod.js} +13 -14
  63. package/dist/{serve-22475fec.esm.js → serve-ddf30b4c.esm.js} +13 -13
  64. package/dist/{start-6fe0ccd2.esm.js → start-08895b5f.esm.js} +11 -13
  65. package/dist/{start-6e03b662.cjs.dev.js → start-a0945fde.cjs.dev.js} +11 -13
  66. package/dist/{start-bea9b61d.cjs.prod.js → start-d9bd5dfb.cjs.prod.js} +11 -13
  67. package/dist/{start-vite-dd8a1e26.cjs.prod.js → start-vite-00514c35.cjs.prod.js} +5 -4
  68. package/dist/{start-vite-698c9e82.cjs.dev.js → start-vite-10e49e5c.cjs.dev.js} +5 -4
  69. package/dist/{start-vite-4b0df191.esm.js → start-vite-745d3123.esm.js} +5 -4
  70. package/dist/{try-load-nimbus-plugins-d502a5fe.cjs.dev.js → try-load-nimbus-plugins-06ce5d83.cjs.dev.js} +1 -1
  71. package/dist/{try-load-nimbus-plugins-2f528d8f.esm.js → try-load-nimbus-plugins-526dccbd.esm.js} +1 -1
  72. package/dist/{try-load-nimbus-plugins-a713d7d3.cjs.prod.js → try-load-nimbus-plugins-59c3a594.cjs.prod.js} +1 -1
  73. package/dist/{vite-plugin-svgr-de6ee7da.esm.js → vite-plugin-svgr-22c8d518.esm.js} +4 -4
  74. package/dist/{vite-plugin-svgr-4034a834.cjs.prod.js → vite-plugin-svgr-53ef97c7.cjs.dev.js} +4 -4
  75. package/dist/{vite-plugin-svgr-7d06f400.cjs.dev.js → vite-plugin-svgr-5de1cad9.cjs.prod.js} +4 -4
  76. package/package.json +32 -31
  77. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.dev.js +2 -2
  78. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.prod.js +2 -2
  79. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.esm.js +2 -2
  80. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.dev.js +7 -8
  81. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +7 -8
  82. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +7 -8
  83. package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.dev.js +1 -1
  84. package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.prod.js +1 -1
  85. package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.esm.js +1 -1
@@ -4,4 +4,4 @@
4
4
  // Dynamically inject webpack `publicPath`, for resolving assets locations.
5
5
  // https://webpack.js.org/guides/public-path/#on-the-fly
6
6
  // https://webpack.js.org/configuration/output/#output-publicpath
7
- if (process.env.NODE_ENV !== 'test') __webpack_public_path__ = `${window.app.cdnUrl.replace(/\/$/, '')}/`;
7
+ if (process.env.NODE_ENV !== 'test') __webpack_public_path__ = "".concat(window.app.cdnUrl.replace(/\/$/, ''), "/");
@@ -4,4 +4,4 @@
4
4
  // Dynamically inject webpack `publicPath`, for resolving assets locations.
5
5
  // https://webpack.js.org/guides/public-path/#on-the-fly
6
6
  // https://webpack.js.org/configuration/output/#output-publicpath
7
- __webpack_public_path__ = `${window.app.cdnUrl.replace(/\/$/, '')}/`;
7
+ __webpack_public_path__ = "".concat(window.app.cdnUrl.replace(/\/$/, ''), "/");
@@ -2,4 +2,4 @@
2
2
  // Dynamically inject webpack `publicPath`, for resolving assets locations.
3
3
  // https://webpack.js.org/guides/public-path/#on-the-fly
4
4
  // https://webpack.js.org/configuration/output/#output-publicpath
5
- if (process.env.NODE_ENV !== 'test') __webpack_public_path__ = `${window.app.cdnUrl.replace(/\/$/, '')}/`;
5
+ if (process.env.NODE_ENV !== 'test') __webpack_public_path__ = "".concat(window.app.cdnUrl.replace(/\/$/, ''), "/");
@@ -10,7 +10,7 @@ var path = require('path');
10
10
  var commander = require('commander');
11
11
  var dotenv = require('dotenv');
12
12
  var dotenvExpand = require('dotenv-expand');
13
- var _package = require('../../dist/package-af294ed4.cjs.dev.js');
13
+ var _package = require('../../dist/package-98adb0d5.cjs.dev.js');
14
14
  var doesFileExist = require('../../dist/does-file-exist-eb86baca.cjs.dev.js');
15
15
  require('node:fs');
16
16
 
@@ -42,9 +42,8 @@ var path__default = /*#__PURE__*/_interopDefault(path);
42
42
  var dotenv__default = /*#__PURE__*/_interopDefault(dotenv);
43
43
  var dotenvExpand__default = /*#__PURE__*/_interopDefault(dotenvExpand);
44
44
 
45
- commander.program.name('mc-scripts').description('CLI to develop and build Merchant Center customizations.').version(_package.pkgJson.version).option('-e, --env <path...>',
46
- // Variadic option. It allows multiple `--env` options to be provided.
47
- `(optional) Parses the file path as a dotenv file and adds the variables to the environment. Multiple flags are allowed.`);
45
+ commander.program.name('mc-scripts').description('CLI to develop and build Merchant Center customizations.').version(_package.pkgJson.version).option('-e, --env <path...>', // Variadic option. It allows multiple `--env` options to be provided.
46
+ "(optional) Parses the file path as a dotenv file and adds the variables to the environment. Multiple flags are allowed.");
48
47
 
49
48
  // Makes the script crash on unhandled rejections instead of silently
50
49
  // ignoring them. In the future, promise rejections that are not handled will
@@ -72,7 +71,7 @@ async function run() {
72
71
  console.log('Experimental Vite bundler enabled! 🚀');
73
72
  console.log('');
74
73
  }
75
- const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-698c9e82.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-6e03b662.cjs.dev.js'); });
74
+ const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-10e49e5c.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-a0945fde.cjs.dev.js'); });
76
75
  await startCommand.default();
77
76
  });
78
77
 
@@ -91,12 +90,12 @@ async function run() {
91
90
  console.log('Experimental Vite bundler enabled! 🚀');
92
91
  console.log('');
93
92
  }
94
- const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-e4eeb1a3.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-bfc565e1.cjs.dev.js'); });
93
+ const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-0e8f3463.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-b9cbc1d1.cjs.dev.js'); });
95
94
  await buildCommand.default();
96
95
  const shouldAlsoCompile = !options.buildOnly;
97
96
  if (shouldAlsoCompile) {
98
97
  console.log('');
99
- const compileHtmlCommand = await Promise.resolve().then(function () { return require('../../dist/compile-html-f4ac88cc.cjs.dev.js'); });
98
+ const compileHtmlCommand = await Promise.resolve().then(function () { return require('../../dist/compile-html-8679f721.cjs.dev.js'); });
100
99
  await compileHtmlCommand.default({
101
100
  printSecurityHeaders: false
102
101
  });
@@ -113,7 +112,7 @@ async function run() {
113
112
 
114
113
  // Do this as the first thing so that any code reading it knows the right env.
115
114
  process.env.NODE_ENV = 'production';
116
- const compileHtmlCommand = await Promise.resolve().then(function () { return require('../../dist/compile-html-f4ac88cc.cjs.dev.js'); });
115
+ const compileHtmlCommand = await Promise.resolve().then(function () { return require('../../dist/compile-html-8679f721.cjs.dev.js'); });
117
116
  await compileHtmlCommand.default(options);
118
117
  });
119
118
 
@@ -135,14 +134,14 @@ async function run() {
135
134
  // files or `${env:...}` substitutions configured (the
136
135
  // `application-authentication` use case).
137
136
  const applicationConfig = handleAuthRoutes ? await (await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@commercetools-frontend/application-config')); })).processConfig() : undefined;
138
- const serveCommand = await Promise.resolve().then(function () { return require('../../dist/serve-b1c12985.cjs.dev.js'); });
137
+ const serveCommand = await Promise.resolve().then(function () { return require('../../dist/serve-760fc169.cjs.dev.js'); });
139
138
  const server = await serveCommand.default({
140
139
  handleAuthRoutes,
141
140
  applicationConfig
142
141
  });
143
142
  const address = server.address();
144
143
  const boundPort = address && typeof address === 'object' ? address.port : '?';
145
- console.log(`Running at http://localhost:${boundPort}`);
144
+ console.log("Running at http://localhost:".concat(boundPort));
146
145
  });
147
146
 
148
147
  // Command: login
@@ -157,7 +156,7 @@ async function run() {
157
156
 
158
157
  // Do this as the first thing so that any code reading it knows the right env.
159
158
  process.env.NODE_ENV = 'production';
160
- const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-62b53ebe.cjs.dev.js'); });
159
+ const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-cd99208a.cjs.dev.js'); });
161
160
  await loginCommand.default(options);
162
161
  });
163
162
 
@@ -171,7 +170,7 @@ async function run() {
171
170
 
172
171
  // Do this as the first thing so that any code reading it knows the right env.
173
172
  process.env.NODE_ENV = 'production';
174
- const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-5a7916dc.cjs.dev.js'); });
173
+ const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-2b56a941.cjs.dev.js'); });
175
174
  await configSyncCommand.default(options);
176
175
  });
177
176
 
@@ -184,7 +183,7 @@ async function run() {
184
183
 
185
184
  // Do this as the first thing so that any code reading it knows the right env.
186
185
  process.env.NODE_ENV = 'production';
187
- const configSyncCICommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-ci-1d706e60.cjs.dev.js'); });
186
+ const configSyncCICommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-ci-6d12f2f3.cjs.dev.js'); });
188
187
  await configSyncCICommand.default(options);
189
188
  });
190
189
 
@@ -198,7 +197,7 @@ async function run() {
198
197
 
199
198
  // Do this as the first thing so that any code reading it knows the right env.
200
199
  process.env.NODE_ENV = 'production';
201
- const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-5aeb990a.cjs.dev.js'); });
200
+ const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-a04efad3.cjs.dev.js'); });
202
201
  await deploymentsSetCommand.default(options);
203
202
  });
204
203
  commander.program.parse();
@@ -221,11 +220,11 @@ function loadDotEnvFiles(globalOptions) {
221
220
  }
222
221
 
223
222
  // https://github.com/bkeepers/dotenv#what-other-env-files-can-i-use
224
- dotenvFiles.push(..._filterInstanceProperty__default["default"](_context = [`.env.${environment}.local`,
223
+ dotenvFiles.push(..._filterInstanceProperty__default["default"](_context = [".env.".concat(environment, ".local"),
225
224
  // Don't include `.env.local` for `test` environment
226
225
  // since normally you expect tests to produce the same
227
226
  // results for everyone
228
- process.env.NODE_ENV !== 'test' && `.env.local`, `.env.${environment}`, '.env']).call(_context, Boolean));
227
+ process.env.NODE_ENV !== 'test' && ".env.local", ".env.".concat(environment), '.env']).call(_context, Boolean));
229
228
 
230
229
  // Load environment variables from .env* files. Suppress warnings using silent
231
230
  // if this file is missing. dotenv will never modify any environment variables
@@ -236,7 +235,8 @@ function loadDotEnvFiles(globalOptions) {
236
235
  const dotenvFilePath = path__default["default"].resolve(path__default["default"].join(applicationDirectory, dotenvFile));
237
236
  if (doesFileExist.doesFileExist(dotenvFilePath)) {
238
237
  dotenvExpand__default["default"].expand(dotenv__default["default"].config({
239
- path: dotenvFilePath
238
+ path: dotenvFilePath,
239
+ quiet: true
240
240
  }));
241
241
  }
242
242
  });
@@ -10,7 +10,7 @@ var path = require('path');
10
10
  var commander = require('commander');
11
11
  var dotenv = require('dotenv');
12
12
  var dotenvExpand = require('dotenv-expand');
13
- var _package = require('../../dist/package-3539c84a.cjs.prod.js');
13
+ var _package = require('../../dist/package-90af7dfe.cjs.prod.js');
14
14
  var doesFileExist = require('../../dist/does-file-exist-be53305d.cjs.prod.js');
15
15
  require('node:fs');
16
16
 
@@ -42,9 +42,8 @@ var path__default = /*#__PURE__*/_interopDefault(path);
42
42
  var dotenv__default = /*#__PURE__*/_interopDefault(dotenv);
43
43
  var dotenvExpand__default = /*#__PURE__*/_interopDefault(dotenvExpand);
44
44
 
45
- commander.program.name('mc-scripts').description('CLI to develop and build Merchant Center customizations.').version(_package.pkgJson.version).option('-e, --env <path...>',
46
- // Variadic option. It allows multiple `--env` options to be provided.
47
- `(optional) Parses the file path as a dotenv file and adds the variables to the environment. Multiple flags are allowed.`);
45
+ commander.program.name('mc-scripts').description('CLI to develop and build Merchant Center customizations.').version(_package.pkgJson.version).option('-e, --env <path...>', // Variadic option. It allows multiple `--env` options to be provided.
46
+ "(optional) Parses the file path as a dotenv file and adds the variables to the environment. Multiple flags are allowed.");
48
47
 
49
48
  // Makes the script crash on unhandled rejections instead of silently
50
49
  // ignoring them. In the future, promise rejections that are not handled will
@@ -72,7 +71,7 @@ async function run() {
72
71
  console.log('Experimental Vite bundler enabled! 🚀');
73
72
  console.log('');
74
73
  }
75
- const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-dd8a1e26.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-bea9b61d.cjs.prod.js'); });
74
+ const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-00514c35.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-d9bd5dfb.cjs.prod.js'); });
76
75
  await startCommand.default();
77
76
  });
78
77
 
@@ -91,12 +90,12 @@ async function run() {
91
90
  console.log('Experimental Vite bundler enabled! 🚀');
92
91
  console.log('');
93
92
  }
94
- const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-377f721f.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-ffa10fc4.cjs.prod.js'); });
93
+ const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-aa0e7242.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-cdeab3a8.cjs.prod.js'); });
95
94
  await buildCommand.default();
96
95
  const shouldAlsoCompile = !options.buildOnly;
97
96
  if (shouldAlsoCompile) {
98
97
  console.log('');
99
- const compileHtmlCommand = await Promise.resolve().then(function () { return require('../../dist/compile-html-50fd05ec.cjs.prod.js'); });
98
+ const compileHtmlCommand = await Promise.resolve().then(function () { return require('../../dist/compile-html-b80f9651.cjs.prod.js'); });
100
99
  await compileHtmlCommand.default({
101
100
  printSecurityHeaders: false
102
101
  });
@@ -113,7 +112,7 @@ async function run() {
113
112
 
114
113
  // Do this as the first thing so that any code reading it knows the right env.
115
114
  process.env.NODE_ENV = 'production';
116
- const compileHtmlCommand = await Promise.resolve().then(function () { return require('../../dist/compile-html-50fd05ec.cjs.prod.js'); });
115
+ const compileHtmlCommand = await Promise.resolve().then(function () { return require('../../dist/compile-html-b80f9651.cjs.prod.js'); });
117
116
  await compileHtmlCommand.default(options);
118
117
  });
119
118
 
@@ -135,14 +134,14 @@ async function run() {
135
134
  // files or `${env:...}` substitutions configured (the
136
135
  // `application-authentication` use case).
137
136
  const applicationConfig = handleAuthRoutes ? await (await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@commercetools-frontend/application-config')); })).processConfig() : undefined;
138
- const serveCommand = await Promise.resolve().then(function () { return require('../../dist/serve-3837602d.cjs.prod.js'); });
137
+ const serveCommand = await Promise.resolve().then(function () { return require('../../dist/serve-87ef7d4f.cjs.prod.js'); });
139
138
  const server = await serveCommand.default({
140
139
  handleAuthRoutes,
141
140
  applicationConfig
142
141
  });
143
142
  const address = server.address();
144
143
  const boundPort = address && typeof address === 'object' ? address.port : '?';
145
- console.log(`Running at http://localhost:${boundPort}`);
144
+ console.log("Running at http://localhost:".concat(boundPort));
146
145
  });
147
146
 
148
147
  // Command: login
@@ -157,7 +156,7 @@ async function run() {
157
156
 
158
157
  // Do this as the first thing so that any code reading it knows the right env.
159
158
  process.env.NODE_ENV = 'production';
160
- const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-d51248e8.cjs.prod.js'); });
159
+ const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-a99d14e6.cjs.prod.js'); });
161
160
  await loginCommand.default(options);
162
161
  });
163
162
 
@@ -171,7 +170,7 @@ async function run() {
171
170
 
172
171
  // Do this as the first thing so that any code reading it knows the right env.
173
172
  process.env.NODE_ENV = 'production';
174
- const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-df11a5bf.cjs.prod.js'); });
173
+ const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-41bc7f5e.cjs.prod.js'); });
175
174
  await configSyncCommand.default(options);
176
175
  });
177
176
 
@@ -184,7 +183,7 @@ async function run() {
184
183
 
185
184
  // Do this as the first thing so that any code reading it knows the right env.
186
185
  process.env.NODE_ENV = 'production';
187
- const configSyncCICommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-ci-9bb94255.cjs.prod.js'); });
186
+ const configSyncCICommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-ci-ea943de9.cjs.prod.js'); });
188
187
  await configSyncCICommand.default(options);
189
188
  });
190
189
 
@@ -198,7 +197,7 @@ async function run() {
198
197
 
199
198
  // Do this as the first thing so that any code reading it knows the right env.
200
199
  process.env.NODE_ENV = 'production';
201
- const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-d96668d6.cjs.prod.js'); });
200
+ const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-bebd7a04.cjs.prod.js'); });
202
201
  await deploymentsSetCommand.default(options);
203
202
  });
204
203
  commander.program.parse();
@@ -221,11 +220,11 @@ function loadDotEnvFiles(globalOptions) {
221
220
  }
222
221
 
223
222
  // https://github.com/bkeepers/dotenv#what-other-env-files-can-i-use
224
- dotenvFiles.push(..._filterInstanceProperty__default["default"](_context = [`.env.${environment}.local`,
223
+ dotenvFiles.push(..._filterInstanceProperty__default["default"](_context = [".env.".concat(environment, ".local"),
225
224
  // Don't include `.env.local` for `test` environment
226
225
  // since normally you expect tests to produce the same
227
226
  // results for everyone
228
- `.env.local`, `.env.${environment}`, '.env']).call(_context, Boolean));
227
+ ".env.local", ".env.".concat(environment), '.env']).call(_context, Boolean));
229
228
 
230
229
  // Load environment variables from .env* files. Suppress warnings using silent
231
230
  // if this file is missing. dotenv will never modify any environment variables
@@ -236,7 +235,8 @@ function loadDotEnvFiles(globalOptions) {
236
235
  const dotenvFilePath = path__default["default"].resolve(path__default["default"].join(applicationDirectory, dotenvFile));
237
236
  if (doesFileExist.doesFileExist(dotenvFilePath)) {
238
237
  dotenvExpand__default["default"].expand(dotenv__default["default"].config({
239
- path: dotenvFilePath
238
+ path: dotenvFilePath,
239
+ quiet: true
240
240
  }));
241
241
  }
242
242
  });
@@ -6,13 +6,12 @@ import path from 'path';
6
6
  import { program } from 'commander';
7
7
  import dotenv from 'dotenv';
8
8
  import dotenvExpand from 'dotenv-expand';
9
- import { p as pkgJson } from '../../dist/package-5371f8ba.esm.js';
9
+ import { p as pkgJson } from '../../dist/package-15124b28.esm.js';
10
10
  import { d as doesFileExist } from '../../dist/does-file-exist-32618334.esm.js';
11
11
  import 'node:fs';
12
12
 
13
- program.name('mc-scripts').description('CLI to develop and build Merchant Center customizations.').version(pkgJson.version).option('-e, --env <path...>',
14
- // Variadic option. It allows multiple `--env` options to be provided.
15
- `(optional) Parses the file path as a dotenv file and adds the variables to the environment. Multiple flags are allowed.`);
13
+ program.name('mc-scripts').description('CLI to develop and build Merchant Center customizations.').version(pkgJson.version).option('-e, --env <path...>', // Variadic option. It allows multiple `--env` options to be provided.
14
+ "(optional) Parses the file path as a dotenv file and adds the variables to the environment. Multiple flags are allowed.");
16
15
 
17
16
  // Makes the script crash on unhandled rejections instead of silently
18
17
  // ignoring them. In the future, promise rejections that are not handled will
@@ -40,7 +39,7 @@ async function run() {
40
39
  console.log('Experimental Vite bundler enabled! 🚀');
41
40
  console.log('');
42
41
  }
43
- const startCommand = shouldUseExperimentalBundler ? await import('../../dist/start-vite-4b0df191.esm.js') : await import('../../dist/start-6fe0ccd2.esm.js');
42
+ const startCommand = shouldUseExperimentalBundler ? await import('../../dist/start-vite-745d3123.esm.js') : await import('../../dist/start-08895b5f.esm.js');
44
43
  await startCommand.default();
45
44
  });
46
45
 
@@ -59,12 +58,12 @@ async function run() {
59
58
  console.log('Experimental Vite bundler enabled! 🚀');
60
59
  console.log('');
61
60
  }
62
- const buildCommand = shouldUseExperimentalBundler ? await import('../../dist/build-vite-2ea8a241.esm.js') : await import('../../dist/build-1d64eec3.esm.js');
61
+ const buildCommand = shouldUseExperimentalBundler ? await import('../../dist/build-vite-ce3c4fb6.esm.js') : await import('../../dist/build-5a0c84e7.esm.js');
63
62
  await buildCommand.default();
64
63
  const shouldAlsoCompile = !options.buildOnly;
65
64
  if (shouldAlsoCompile) {
66
65
  console.log('');
67
- const compileHtmlCommand = await import('../../dist/compile-html-025cd493.esm.js');
66
+ const compileHtmlCommand = await import('../../dist/compile-html-adfef598.esm.js');
68
67
  await compileHtmlCommand.default({
69
68
  printSecurityHeaders: false
70
69
  });
@@ -81,7 +80,7 @@ async function run() {
81
80
 
82
81
  // Do this as the first thing so that any code reading it knows the right env.
83
82
  process.env.NODE_ENV = 'production';
84
- const compileHtmlCommand = await import('../../dist/compile-html-025cd493.esm.js');
83
+ const compileHtmlCommand = await import('../../dist/compile-html-adfef598.esm.js');
85
84
  await compileHtmlCommand.default(options);
86
85
  });
87
86
 
@@ -103,14 +102,14 @@ async function run() {
103
102
  // files or `${env:...}` substitutions configured (the
104
103
  // `application-authentication` use case).
105
104
  const applicationConfig = handleAuthRoutes ? await (await import('@commercetools-frontend/application-config')).processConfig() : undefined;
106
- const serveCommand = await import('../../dist/serve-22475fec.esm.js');
105
+ const serveCommand = await import('../../dist/serve-ddf30b4c.esm.js');
107
106
  const server = await serveCommand.default({
108
107
  handleAuthRoutes,
109
108
  applicationConfig
110
109
  });
111
110
  const address = server.address();
112
111
  const boundPort = address && typeof address === 'object' ? address.port : '?';
113
- console.log(`Running at http://localhost:${boundPort}`);
112
+ console.log("Running at http://localhost:".concat(boundPort));
114
113
  });
115
114
 
116
115
  // Command: login
@@ -125,7 +124,7 @@ async function run() {
125
124
 
126
125
  // Do this as the first thing so that any code reading it knows the right env.
127
126
  process.env.NODE_ENV = 'production';
128
- const loginCommand = await import('../../dist/login-79d02906.esm.js');
127
+ const loginCommand = await import('../../dist/login-b935aede.esm.js');
129
128
  await loginCommand.default(options);
130
129
  });
131
130
 
@@ -139,7 +138,7 @@ async function run() {
139
138
 
140
139
  // Do this as the first thing so that any code reading it knows the right env.
141
140
  process.env.NODE_ENV = 'production';
142
- const configSyncCommand = await import('../../dist/config-sync-be573249.esm.js');
141
+ const configSyncCommand = await import('../../dist/config-sync-7031a7de.esm.js');
143
142
  await configSyncCommand.default(options);
144
143
  });
145
144
 
@@ -152,7 +151,7 @@ async function run() {
152
151
 
153
152
  // Do this as the first thing so that any code reading it knows the right env.
154
153
  process.env.NODE_ENV = 'production';
155
- const configSyncCICommand = await import('../../dist/config-sync-ci-a34b7b54.esm.js');
154
+ const configSyncCICommand = await import('../../dist/config-sync-ci-1866c188.esm.js');
156
155
  await configSyncCICommand.default(options);
157
156
  });
158
157
 
@@ -166,7 +165,7 @@ async function run() {
166
165
 
167
166
  // Do this as the first thing so that any code reading it knows the right env.
168
167
  process.env.NODE_ENV = 'production';
169
- const deploymentsSetCommand = await import('../../dist/deployment-previews-set-ee6978a8.esm.js');
168
+ const deploymentsSetCommand = await import('../../dist/deployment-previews-set-410cecf1.esm.js');
170
169
  await deploymentsSetCommand.default(options);
171
170
  });
172
171
  program.parse();
@@ -189,11 +188,11 @@ function loadDotEnvFiles(globalOptions) {
189
188
  }
190
189
 
191
190
  // https://github.com/bkeepers/dotenv#what-other-env-files-can-i-use
192
- dotenvFiles.push(..._filterInstanceProperty(_context = [`.env.${environment}.local`,
191
+ dotenvFiles.push(..._filterInstanceProperty(_context = [".env.".concat(environment, ".local"),
193
192
  // Don't include `.env.local` for `test` environment
194
193
  // since normally you expect tests to produce the same
195
194
  // results for everyone
196
- process.env.NODE_ENV !== 'test' && `.env.local`, `.env.${environment}`, '.env']).call(_context, Boolean));
195
+ process.env.NODE_ENV !== 'test' && ".env.local", ".env.".concat(environment), '.env']).call(_context, Boolean));
197
196
 
198
197
  // Load environment variables from .env* files. Suppress warnings using silent
199
198
  // if this file is missing. dotenv will never modify any environment variables
@@ -204,7 +203,8 @@ function loadDotEnvFiles(globalOptions) {
204
203
  const dotenvFilePath = path.resolve(path.join(applicationDirectory, dotenvFile));
205
204
  if (doesFileExist(dotenvFilePath)) {
206
205
  dotenvExpand.expand(dotenv.config({
207
- path: dotenvFilePath
206
+ path: dotenvFilePath,
207
+ quiet: true
208
208
  }));
209
209
  }
210
210
  });
@@ -8,8 +8,8 @@ import formatWebpackMessages from 'react-dev-utils/formatWebpackMessages';
8
8
  import printBuildError from 'react-dev-utils/printBuildError';
9
9
  import webpack from 'webpack';
10
10
  import { packageLocation } from '@commercetools-frontend/assets';
11
- import { c as createWebpackConfigForProduction } from './create-webpack-config-for-production-633d3891.esm.js';
12
- import { p as paths } from './paths-39f22b8b.esm.js';
11
+ import { c as createWebpackConfigForProduction } from './create-webpack-config-for-production-31bb3d24.esm.js';
12
+ import { p as paths } from './paths-7bf7e88e.esm.js';
13
13
  import { d as doesFileExist } from './does-file-exist-32618334.esm.js';
14
14
  import '@babel/runtime-corejs3/core-js-stable/object/keys';
15
15
  import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
@@ -32,17 +32,17 @@ import 'mini-css-extract-plugin';
32
32
  import 'moment-locales-webpack-plugin';
33
33
  import 'terser-webpack-plugin';
34
34
  import 'webpack-bundle-analyzer';
35
- import './try-load-nimbus-plugins-2f528d8f.esm.js';
35
+ import './try-load-nimbus-plugins-526dccbd.esm.js';
36
36
  import '@babel/runtime-corejs3/helpers/classCallCheck';
37
37
  import '@babel/runtime-corejs3/helpers/createClass';
38
38
  import '@babel/runtime-corejs3/core-js-stable/instance/bind';
39
39
  import '@babel/runtime-corejs3/core-js-stable/instance/reduce';
40
40
  import '@babel/runtime-corejs3/core-js-stable/object/assign';
41
41
  import 'fs';
42
- import './create-postcss-config-a9f7c8a8.esm.js';
42
+ import './create-postcss-config-390e8a52.esm.js';
43
43
  import '@babel/runtime-corejs3/helpers/slicedToArray';
44
- import './package-5371f8ba.esm.js';
45
- import './optimizations-54382f7b.esm.js';
44
+ import './package-15124b28.esm.js';
45
+ import './optimizations-1b3f8157.esm.js';
46
46
  import '@babel/runtime-corejs3/core-js-stable/object/entries';
47
47
  import '@babel/runtime-corejs3/core-js-stable/instance/includes';
48
48
  import './vendors-to-transpile-7dc84a72.esm.js';
@@ -89,7 +89,7 @@ async function run() {
89
89
  if (error instanceof Error) {
90
90
  printBuildError(error);
91
91
  }
92
- throw new Error(`Failed to compile`);
92
+ throw new Error("Failed to compile");
93
93
  }
94
94
 
95
95
  // Create the production build and print the deployment instructions.
@@ -120,7 +120,7 @@ async function run() {
120
120
  warnings: []
121
121
  });
122
122
  } else {
123
- messages = formatWebpackMessages(stats?.toJson({
123
+ messages = formatWebpackMessages(stats === null || stats === void 0 ? void 0 : stats.toJson({
124
124
  all: false,
125
125
  warnings: true,
126
126
  errors: true
@@ -10,8 +10,8 @@ var formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
10
10
  var printBuildError = require('react-dev-utils/printBuildError');
11
11
  var webpack = require('webpack');
12
12
  var assets = require('@commercetools-frontend/assets');
13
- var createWebpackConfigForProduction = require('./create-webpack-config-for-production-585f2e76.cjs.dev.js');
14
- var paths = require('./paths-b76fc753.cjs.dev.js');
13
+ var createWebpackConfigForProduction = require('./create-webpack-config-for-production-29b34b8c.cjs.dev.js');
14
+ var paths = require('./paths-ec3e3a7d.cjs.dev.js');
15
15
  var doesFileExist = require('./does-file-exist-eb86baca.cjs.dev.js');
16
16
  require('@babel/runtime-corejs3/core-js-stable/object/keys');
17
17
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
@@ -34,17 +34,17 @@ require('mini-css-extract-plugin');
34
34
  require('moment-locales-webpack-plugin');
35
35
  require('terser-webpack-plugin');
36
36
  require('webpack-bundle-analyzer');
37
- require('./try-load-nimbus-plugins-d502a5fe.cjs.dev.js');
37
+ require('./try-load-nimbus-plugins-06ce5d83.cjs.dev.js');
38
38
  require('@babel/runtime-corejs3/helpers/classCallCheck');
39
39
  require('@babel/runtime-corejs3/helpers/createClass');
40
40
  require('@babel/runtime-corejs3/core-js-stable/instance/bind');
41
41
  require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
42
42
  require('@babel/runtime-corejs3/core-js-stable/object/assign');
43
43
  require('fs');
44
- require('./create-postcss-config-3a80caef.cjs.dev.js');
44
+ require('./create-postcss-config-13cb1cb8.cjs.dev.js');
45
45
  require('@babel/runtime-corejs3/helpers/slicedToArray');
46
- require('./package-af294ed4.cjs.dev.js');
47
- require('./optimizations-56be74d6.cjs.dev.js');
46
+ require('./package-98adb0d5.cjs.dev.js');
47
+ require('./optimizations-640ffcac.cjs.dev.js');
48
48
  require('@babel/runtime-corejs3/core-js-stable/object/entries');
49
49
  require('@babel/runtime-corejs3/core-js-stable/instance/includes');
50
50
  require('./vendors-to-transpile-6ab4ea06.cjs.dev.js');
@@ -103,7 +103,7 @@ async function run() {
103
103
  if (error instanceof Error) {
104
104
  printBuildError__default["default"](error);
105
105
  }
106
- throw new Error(`Failed to compile`);
106
+ throw new Error("Failed to compile");
107
107
  }
108
108
 
109
109
  // Create the production build and print the deployment instructions.
@@ -134,7 +134,7 @@ async function run() {
134
134
  warnings: []
135
135
  });
136
136
  } else {
137
- messages = formatWebpackMessages__default["default"](stats?.toJson({
137
+ messages = formatWebpackMessages__default["default"](stats === null || stats === void 0 ? void 0 : stats.toJson({
138
138
  all: false,
139
139
  warnings: true,
140
140
  errors: true
@@ -10,8 +10,8 @@ var formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
10
10
  var printBuildError = require('react-dev-utils/printBuildError');
11
11
  var webpack = require('webpack');
12
12
  var assets = require('@commercetools-frontend/assets');
13
- var createWebpackConfigForProduction = require('./create-webpack-config-for-production-f1317617.cjs.prod.js');
14
- var paths = require('./paths-7768b440.cjs.prod.js');
13
+ var createWebpackConfigForProduction = require('./create-webpack-config-for-production-2e6e5036.cjs.prod.js');
14
+ var paths = require('./paths-af1a725a.cjs.prod.js');
15
15
  var doesFileExist = require('./does-file-exist-be53305d.cjs.prod.js');
16
16
  require('@babel/runtime-corejs3/core-js-stable/object/keys');
17
17
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
@@ -34,17 +34,17 @@ require('mini-css-extract-plugin');
34
34
  require('moment-locales-webpack-plugin');
35
35
  require('terser-webpack-plugin');
36
36
  require('webpack-bundle-analyzer');
37
- require('./try-load-nimbus-plugins-a713d7d3.cjs.prod.js');
37
+ require('./try-load-nimbus-plugins-59c3a594.cjs.prod.js');
38
38
  require('@babel/runtime-corejs3/helpers/classCallCheck');
39
39
  require('@babel/runtime-corejs3/helpers/createClass');
40
40
  require('@babel/runtime-corejs3/core-js-stable/instance/bind');
41
41
  require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
42
42
  require('@babel/runtime-corejs3/core-js-stable/object/assign');
43
43
  require('fs');
44
- require('./create-postcss-config-7d0b0ae1.cjs.prod.js');
44
+ require('./create-postcss-config-1eeb3d9d.cjs.prod.js');
45
45
  require('@babel/runtime-corejs3/helpers/slicedToArray');
46
- require('./package-3539c84a.cjs.prod.js');
47
- require('./optimizations-da5a0cfa.cjs.prod.js');
46
+ require('./package-90af7dfe.cjs.prod.js');
47
+ require('./optimizations-09a6638c.cjs.prod.js');
48
48
  require('@babel/runtime-corejs3/core-js-stable/object/entries');
49
49
  require('@babel/runtime-corejs3/core-js-stable/instance/includes');
50
50
  require('./vendors-to-transpile-04a49d40.cjs.prod.js');
@@ -103,7 +103,7 @@ async function run() {
103
103
  if (error instanceof Error) {
104
104
  printBuildError__default["default"](error);
105
105
  }
106
- throw new Error(`Failed to compile`);
106
+ throw new Error("Failed to compile");
107
107
  }
108
108
 
109
109
  // Create the production build and print the deployment instructions.
@@ -134,7 +134,7 @@ async function run() {
134
134
  warnings: []
135
135
  });
136
136
  } else {
137
- messages = formatWebpackMessages__default["default"](stats?.toJson({
137
+ messages = formatWebpackMessages__default["default"](stats === null || stats === void 0 ? void 0 : stats.toJson({
138
138
  all: false,
139
139
  warnings: true,
140
140
  errors: true