@commercetools-frontend/mc-scripts 27.5.0 → 27.5.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 (52) hide show
  1. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.dev.js +37 -10
  2. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +37 -10
  3. package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +19 -10
  4. package/dist/{build-7a3a4b48.cjs.dev.js → build-2cbde331.cjs.dev.js} +3 -3
  5. package/dist/{build-51b09598.esm.js → build-4ab9306b.esm.js} +3 -3
  6. package/dist/{build-2dde4016.cjs.prod.js → build-7c7442bd.cjs.prod.js} +3 -3
  7. package/dist/commercetools-frontend-mc-scripts.cjs.dev.js +1 -1
  8. package/dist/commercetools-frontend-mc-scripts.cjs.prod.js +1 -1
  9. package/dist/commercetools-frontend-mc-scripts.esm.js +1 -1
  10. package/dist/{config-sync-eac5312f.cjs.dev.js → config-sync-7ae74804.cjs.dev.js} +3 -3
  11. package/dist/{config-sync-ci-f083fe23.cjs.dev.js → config-sync-ci-732e0c5d.cjs.dev.js} +3 -3
  12. package/dist/{config-sync-ci-f2adf187.esm.js → config-sync-ci-9c50ed6f.esm.js} +3 -3
  13. package/dist/{config-sync-ci-0d638a98.cjs.prod.js → config-sync-ci-d3104a62.cjs.prod.js} +3 -3
  14. package/dist/{config-sync-74ddb92a.cjs.prod.js → config-sync-d3d5d721.cjs.prod.js} +3 -3
  15. package/dist/{config-sync-38bb2049.esm.js → config-sync-d5c4aa9b.esm.js} +3 -3
  16. package/dist/{config-sync-helpers-165afb6b.cjs.dev.js → config-sync-helpers-178da465.cjs.dev.js} +1 -1
  17. package/dist/{config-sync-helpers-2bf06642.esm.js → config-sync-helpers-bea5f027.esm.js} +1 -1
  18. package/dist/{config-sync-helpers-1dad1481.cjs.prod.js → config-sync-helpers-ea628bce.cjs.prod.js} +1 -1
  19. package/dist/{create-postcss-config-434fe673.cjs.prod.js → create-postcss-config-3f3bda09.cjs.prod.js} +1 -1
  20. package/dist/{create-postcss-config-1b021fb2.cjs.dev.js → create-postcss-config-e4c767b4.cjs.dev.js} +1 -1
  21. package/dist/{create-postcss-config-505c5a4e.esm.js → create-postcss-config-f6a5f68b.esm.js} +1 -1
  22. package/dist/{create-webpack-config-for-development-1db101e2.cjs.prod.js → create-webpack-config-for-development-4a2616e9.cjs.prod.js} +1 -1
  23. package/dist/{create-webpack-config-for-development-65abeb3f.cjs.dev.js → create-webpack-config-for-development-a2df037a.cjs.dev.js} +1 -1
  24. package/dist/{create-webpack-config-for-development-fd981a20.esm.js → create-webpack-config-for-development-c6e48557.esm.js} +1 -1
  25. package/dist/{create-webpack-config-for-production-bb66207f.esm.js → create-webpack-config-for-production-04a7a9f8.esm.js} +1 -1
  26. package/dist/{create-webpack-config-for-production-010a6fb4.cjs.dev.js → create-webpack-config-for-production-12e257fc.cjs.dev.js} +1 -1
  27. package/dist/{create-webpack-config-for-production-a239ba22.cjs.prod.js → create-webpack-config-for-production-443f6fe7.cjs.prod.js} +1 -1
  28. package/dist/{deployment-previews-set-beeaeb6d.cjs.prod.js → deployment-previews-set-2b334c11.cjs.prod.js} +2 -2
  29. package/dist/{deployment-previews-set-c4f8a461.cjs.dev.js → deployment-previews-set-491442d7.cjs.dev.js} +2 -2
  30. package/dist/{deployment-previews-set-6ceff6a3.esm.js → deployment-previews-set-4b020cb4.esm.js} +2 -2
  31. package/dist/{graphql-requests-4c97fe92.cjs.prod.js → graphql-requests-6ead2029.cjs.prod.js} +1 -1
  32. package/dist/{graphql-requests-53a1f5dd.esm.js → graphql-requests-87338c52.esm.js} +1 -1
  33. package/dist/{graphql-requests-86c87041.cjs.dev.js → graphql-requests-bd7a3fe9.cjs.dev.js} +1 -1
  34. package/dist/{login-c151a059.cjs.prod.js → login-26cfe1af.cjs.prod.js} +1 -1
  35. package/dist/{login-382b51ea.cjs.dev.js → login-2d10deff.cjs.dev.js} +1 -1
  36. package/dist/{login-1e4ddcda.esm.js → login-ab249036.esm.js} +1 -1
  37. package/dist/{package-dfc9c56b.cjs.prod.js → package-62998a4b.cjs.prod.js} +8 -8
  38. package/dist/{package-02f0532d.esm.js → package-a686a0ee.esm.js} +8 -8
  39. package/dist/{package-c8f39856.cjs.dev.js → package-fe1840f3.cjs.dev.js} +8 -8
  40. package/dist/{serve-00294d34.esm.js → serve-22475fec.esm.js} +17 -14
  41. package/dist/{serve-d62433a1.cjs.prod.js → serve-3837602d.cjs.prod.js} +18 -15
  42. package/dist/{serve-81db9f2e.cjs.dev.js → serve-b1c12985.cjs.dev.js} +18 -15
  43. package/dist/{start-5eb60c74.cjs.prod.js → start-19facf6d.cjs.prod.js} +3 -3
  44. package/dist/{start-6fc3b235.esm.js → start-3c1e5902.esm.js} +3 -3
  45. package/dist/{start-32bc9eca.cjs.dev.js → start-9b1252f9.cjs.dev.js} +3 -3
  46. package/package.json +8 -8
  47. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.dev.js +2 -2
  48. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.prod.js +2 -2
  49. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.esm.js +2 -2
  50. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.dev.js +4 -4
  51. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +4 -4
  52. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +4 -4
@@ -10,12 +10,30 @@ 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-c8f39856.cjs.dev.js');
13
+ var _package = require('../../dist/package-fe1840f3.cjs.dev.js');
14
14
  var doesFileExist = require('../../dist/does-file-exist-eb86baca.cjs.dev.js');
15
15
  require('node:fs');
16
16
 
17
17
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
18
18
 
19
+ function _interopNamespace(e) {
20
+ if (e && e.__esModule) return e;
21
+ var n = Object.create(null);
22
+ if (e) {
23
+ Object.keys(e).forEach(function (k) {
24
+ if (k !== 'default') {
25
+ var d = Object.getOwnPropertyDescriptor(e, k);
26
+ Object.defineProperty(n, k, d.get ? d : {
27
+ enumerable: true,
28
+ get: function () { return e[k]; }
29
+ });
30
+ }
31
+ });
32
+ }
33
+ n["default"] = e;
34
+ return Object.freeze(n);
35
+ }
36
+
19
37
  var _Array$isArray__default = /*#__PURE__*/_interopDefault(_Array$isArray);
20
38
  var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInstanceProperty);
21
39
  var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefault(_forEachInstanceProperty);
@@ -54,7 +72,7 @@ async function run() {
54
72
  console.log('Experimental Vite bundler enabled! 🚀');
55
73
  console.log('');
56
74
  }
57
- const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-068e9f73.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-32bc9eca.cjs.dev.js'); });
75
+ const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-068e9f73.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-9b1252f9.cjs.dev.js'); });
58
76
  await startCommand.default();
59
77
  });
60
78
 
@@ -73,7 +91,7 @@ async function run() {
73
91
  console.log('Experimental Vite bundler enabled! 🚀');
74
92
  console.log('');
75
93
  }
76
- const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-2fb9320e.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-7a3a4b48.cjs.dev.js'); });
94
+ const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-2fb9320e.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-2cbde331.cjs.dev.js'); });
77
95
  await buildCommand.default();
78
96
  const shouldAlsoCompile = !options.buildOnly;
79
97
  if (shouldAlsoCompile) {
@@ -100,7 +118,7 @@ async function run() {
100
118
  });
101
119
 
102
120
  // Command: serve
103
- commander.program.command('serve').description('Serves previously built and compiled application from the "public" folder.').option('--handle-auth-routes <enabled>', '(optional) Whether `/login*` and `/logout*` are intercepted by the built-in login/logout handlers (`true`, the default) or passed through to the SPA fallback (`false`). Set to `false` for applications that own those routes themselves (e.g. `application-authentication`).', 'true').action(async options => {
121
+ commander.program.command('serve').description('Serves previously built and compiled application from the "public" folder.').option('--handle-auth-routes <enabled>', '(optional) Whether `/login*` and `/logout*` are intercepted by the built-in login/logout handlers (`true`, the default) or passed through to the SPA fallback (`false`). Set to `false` for applications that own those routes themselves (e.g. `application-authentication`); doing so also skips loading the application config entirely, so the command can run as a pure static file server with no dotenv files or `${env:...}` substitutions configured.', 'true').action(async options => {
104
122
  const globalOptions = commander.program.opts();
105
123
 
106
124
  // Load dotenv files into the process environment.
@@ -109,9 +127,18 @@ async function run() {
109
127
 
110
128
  // Do this as the first thing so that any code reading it knows the right env.
111
129
  process.env.NODE_ENV = 'production';
112
- const serveCommand = await Promise.resolve().then(function () { return require('../../dist/serve-81db9f2e.cjs.dev.js'); });
130
+ const handleAuthRoutes = options.handleAuthRoutes !== 'false';
131
+
132
+ // The application config is consumed only by `serve`'s auth-route
133
+ // handlers. When those are disabled, skip `processConfig()` entirely
134
+ // so the command can run as a pure static file server with no dotenv
135
+ // files or `${env:...}` substitutions configured (the
136
+ // `application-authentication` use case).
137
+ 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'); });
113
139
  const server = await serveCommand.default({
114
- handleAuthRoutes: options.handleAuthRoutes !== 'false'
140
+ handleAuthRoutes,
141
+ applicationConfig
115
142
  });
116
143
  const address = server.address();
117
144
  const boundPort = address && typeof address === 'object' ? address.port : '?';
@@ -130,7 +157,7 @@ async function run() {
130
157
 
131
158
  // Do this as the first thing so that any code reading it knows the right env.
132
159
  process.env.NODE_ENV = 'production';
133
- const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-382b51ea.cjs.dev.js'); });
160
+ const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-2d10deff.cjs.dev.js'); });
134
161
  await loginCommand.default(options);
135
162
  });
136
163
 
@@ -144,7 +171,7 @@ async function run() {
144
171
 
145
172
  // Do this as the first thing so that any code reading it knows the right env.
146
173
  process.env.NODE_ENV = 'production';
147
- const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-eac5312f.cjs.dev.js'); });
174
+ const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-7ae74804.cjs.dev.js'); });
148
175
  await configSyncCommand.default(options);
149
176
  });
150
177
 
@@ -157,7 +184,7 @@ async function run() {
157
184
 
158
185
  // Do this as the first thing so that any code reading it knows the right env.
159
186
  process.env.NODE_ENV = 'production';
160
- const configSyncCICommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-ci-f083fe23.cjs.dev.js'); });
187
+ const configSyncCICommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-ci-732e0c5d.cjs.dev.js'); });
161
188
  await configSyncCICommand.default(options);
162
189
  });
163
190
 
@@ -171,7 +198,7 @@ async function run() {
171
198
 
172
199
  // Do this as the first thing so that any code reading it knows the right env.
173
200
  process.env.NODE_ENV = 'production';
174
- const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-c4f8a461.cjs.dev.js'); });
201
+ const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-491442d7.cjs.dev.js'); });
175
202
  await deploymentsSetCommand.default(options);
176
203
  });
177
204
  commander.program.parse();
@@ -10,12 +10,30 @@ 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-dfc9c56b.cjs.prod.js');
13
+ var _package = require('../../dist/package-62998a4b.cjs.prod.js');
14
14
  var doesFileExist = require('../../dist/does-file-exist-be53305d.cjs.prod.js');
15
15
  require('node:fs');
16
16
 
17
17
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
18
18
 
19
+ function _interopNamespace(e) {
20
+ if (e && e.__esModule) return e;
21
+ var n = Object.create(null);
22
+ if (e) {
23
+ Object.keys(e).forEach(function (k) {
24
+ if (k !== 'default') {
25
+ var d = Object.getOwnPropertyDescriptor(e, k);
26
+ Object.defineProperty(n, k, d.get ? d : {
27
+ enumerable: true,
28
+ get: function () { return e[k]; }
29
+ });
30
+ }
31
+ });
32
+ }
33
+ n["default"] = e;
34
+ return Object.freeze(n);
35
+ }
36
+
19
37
  var _Array$isArray__default = /*#__PURE__*/_interopDefault(_Array$isArray);
20
38
  var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInstanceProperty);
21
39
  var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefault(_forEachInstanceProperty);
@@ -54,7 +72,7 @@ async function run() {
54
72
  console.log('Experimental Vite bundler enabled! 🚀');
55
73
  console.log('');
56
74
  }
57
- const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-29078b3a.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-5eb60c74.cjs.prod.js'); });
75
+ const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-29078b3a.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-19facf6d.cjs.prod.js'); });
58
76
  await startCommand.default();
59
77
  });
60
78
 
@@ -73,7 +91,7 @@ async function run() {
73
91
  console.log('Experimental Vite bundler enabled! 🚀');
74
92
  console.log('');
75
93
  }
76
- const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-71889a4a.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-2dde4016.cjs.prod.js'); });
94
+ const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-71889a4a.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-7c7442bd.cjs.prod.js'); });
77
95
  await buildCommand.default();
78
96
  const shouldAlsoCompile = !options.buildOnly;
79
97
  if (shouldAlsoCompile) {
@@ -100,7 +118,7 @@ async function run() {
100
118
  });
101
119
 
102
120
  // Command: serve
103
- commander.program.command('serve').description('Serves previously built and compiled application from the "public" folder.').option('--handle-auth-routes <enabled>', '(optional) Whether `/login*` and `/logout*` are intercepted by the built-in login/logout handlers (`true`, the default) or passed through to the SPA fallback (`false`). Set to `false` for applications that own those routes themselves (e.g. `application-authentication`).', 'true').action(async options => {
121
+ commander.program.command('serve').description('Serves previously built and compiled application from the "public" folder.').option('--handle-auth-routes <enabled>', '(optional) Whether `/login*` and `/logout*` are intercepted by the built-in login/logout handlers (`true`, the default) or passed through to the SPA fallback (`false`). Set to `false` for applications that own those routes themselves (e.g. `application-authentication`); doing so also skips loading the application config entirely, so the command can run as a pure static file server with no dotenv files or `${env:...}` substitutions configured.', 'true').action(async options => {
104
122
  const globalOptions = commander.program.opts();
105
123
 
106
124
  // Load dotenv files into the process environment.
@@ -109,9 +127,18 @@ async function run() {
109
127
 
110
128
  // Do this as the first thing so that any code reading it knows the right env.
111
129
  process.env.NODE_ENV = 'production';
112
- const serveCommand = await Promise.resolve().then(function () { return require('../../dist/serve-d62433a1.cjs.prod.js'); });
130
+ const handleAuthRoutes = options.handleAuthRoutes !== 'false';
131
+
132
+ // The application config is consumed only by `serve`'s auth-route
133
+ // handlers. When those are disabled, skip `processConfig()` entirely
134
+ // so the command can run as a pure static file server with no dotenv
135
+ // files or `${env:...}` substitutions configured (the
136
+ // `application-authentication` use case).
137
+ 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'); });
113
139
  const server = await serveCommand.default({
114
- handleAuthRoutes: options.handleAuthRoutes !== 'false'
140
+ handleAuthRoutes,
141
+ applicationConfig
115
142
  });
116
143
  const address = server.address();
117
144
  const boundPort = address && typeof address === 'object' ? address.port : '?';
@@ -130,7 +157,7 @@ async function run() {
130
157
 
131
158
  // Do this as the first thing so that any code reading it knows the right env.
132
159
  process.env.NODE_ENV = 'production';
133
- const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-c151a059.cjs.prod.js'); });
160
+ const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-26cfe1af.cjs.prod.js'); });
134
161
  await loginCommand.default(options);
135
162
  });
136
163
 
@@ -144,7 +171,7 @@ async function run() {
144
171
 
145
172
  // Do this as the first thing so that any code reading it knows the right env.
146
173
  process.env.NODE_ENV = 'production';
147
- const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-74ddb92a.cjs.prod.js'); });
174
+ const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-d3d5d721.cjs.prod.js'); });
148
175
  await configSyncCommand.default(options);
149
176
  });
150
177
 
@@ -157,7 +184,7 @@ async function run() {
157
184
 
158
185
  // Do this as the first thing so that any code reading it knows the right env.
159
186
  process.env.NODE_ENV = 'production';
160
- const configSyncCICommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-ci-0d638a98.cjs.prod.js'); });
187
+ const configSyncCICommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-ci-d3104a62.cjs.prod.js'); });
161
188
  await configSyncCICommand.default(options);
162
189
  });
163
190
 
@@ -171,7 +198,7 @@ async function run() {
171
198
 
172
199
  // Do this as the first thing so that any code reading it knows the right env.
173
200
  process.env.NODE_ENV = 'production';
174
- const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-beeaeb6d.cjs.prod.js'); });
201
+ const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-2b334c11.cjs.prod.js'); });
175
202
  await deploymentsSetCommand.default(options);
176
203
  });
177
204
  commander.program.parse();
@@ -6,7 +6,7 @@ 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-02f0532d.esm.js';
9
+ import { p as pkgJson } from '../../dist/package-a686a0ee.esm.js';
10
10
  import { d as doesFileExist } from '../../dist/does-file-exist-32618334.esm.js';
11
11
  import 'node:fs';
12
12
 
@@ -40,7 +40,7 @@ async function run() {
40
40
  console.log('Experimental Vite bundler enabled! 🚀');
41
41
  console.log('');
42
42
  }
43
- const startCommand = shouldUseExperimentalBundler ? await import('../../dist/start-vite-7d1161e8.esm.js') : await import('../../dist/start-6fc3b235.esm.js');
43
+ const startCommand = shouldUseExperimentalBundler ? await import('../../dist/start-vite-7d1161e8.esm.js') : await import('../../dist/start-3c1e5902.esm.js');
44
44
  await startCommand.default();
45
45
  });
46
46
 
@@ -59,7 +59,7 @@ async function run() {
59
59
  console.log('Experimental Vite bundler enabled! 🚀');
60
60
  console.log('');
61
61
  }
62
- const buildCommand = shouldUseExperimentalBundler ? await import('../../dist/build-vite-1526e4f8.esm.js') : await import('../../dist/build-51b09598.esm.js');
62
+ const buildCommand = shouldUseExperimentalBundler ? await import('../../dist/build-vite-1526e4f8.esm.js') : await import('../../dist/build-4ab9306b.esm.js');
63
63
  await buildCommand.default();
64
64
  const shouldAlsoCompile = !options.buildOnly;
65
65
  if (shouldAlsoCompile) {
@@ -86,7 +86,7 @@ async function run() {
86
86
  });
87
87
 
88
88
  // Command: serve
89
- program.command('serve').description('Serves previously built and compiled application from the "public" folder.').option('--handle-auth-routes <enabled>', '(optional) Whether `/login*` and `/logout*` are intercepted by the built-in login/logout handlers (`true`, the default) or passed through to the SPA fallback (`false`). Set to `false` for applications that own those routes themselves (e.g. `application-authentication`).', 'true').action(async options => {
89
+ program.command('serve').description('Serves previously built and compiled application from the "public" folder.').option('--handle-auth-routes <enabled>', '(optional) Whether `/login*` and `/logout*` are intercepted by the built-in login/logout handlers (`true`, the default) or passed through to the SPA fallback (`false`). Set to `false` for applications that own those routes themselves (e.g. `application-authentication`); doing so also skips loading the application config entirely, so the command can run as a pure static file server with no dotenv files or `${env:...}` substitutions configured.', 'true').action(async options => {
90
90
  const globalOptions = program.opts();
91
91
 
92
92
  // Load dotenv files into the process environment.
@@ -95,9 +95,18 @@ async function run() {
95
95
 
96
96
  // Do this as the first thing so that any code reading it knows the right env.
97
97
  process.env.NODE_ENV = 'production';
98
- const serveCommand = await import('../../dist/serve-00294d34.esm.js');
98
+ const handleAuthRoutes = options.handleAuthRoutes !== 'false';
99
+
100
+ // The application config is consumed only by `serve`'s auth-route
101
+ // handlers. When those are disabled, skip `processConfig()` entirely
102
+ // so the command can run as a pure static file server with no dotenv
103
+ // files or `${env:...}` substitutions configured (the
104
+ // `application-authentication` use case).
105
+ const applicationConfig = handleAuthRoutes ? await (await import('@commercetools-frontend/application-config')).processConfig() : undefined;
106
+ const serveCommand = await import('../../dist/serve-22475fec.esm.js');
99
107
  const server = await serveCommand.default({
100
- handleAuthRoutes: options.handleAuthRoutes !== 'false'
108
+ handleAuthRoutes,
109
+ applicationConfig
101
110
  });
102
111
  const address = server.address();
103
112
  const boundPort = address && typeof address === 'object' ? address.port : '?';
@@ -116,7 +125,7 @@ async function run() {
116
125
 
117
126
  // Do this as the first thing so that any code reading it knows the right env.
118
127
  process.env.NODE_ENV = 'production';
119
- const loginCommand = await import('../../dist/login-1e4ddcda.esm.js');
128
+ const loginCommand = await import('../../dist/login-ab249036.esm.js');
120
129
  await loginCommand.default(options);
121
130
  });
122
131
 
@@ -130,7 +139,7 @@ async function run() {
130
139
 
131
140
  // Do this as the first thing so that any code reading it knows the right env.
132
141
  process.env.NODE_ENV = 'production';
133
- const configSyncCommand = await import('../../dist/config-sync-38bb2049.esm.js');
142
+ const configSyncCommand = await import('../../dist/config-sync-d5c4aa9b.esm.js');
134
143
  await configSyncCommand.default(options);
135
144
  });
136
145
 
@@ -143,7 +152,7 @@ async function run() {
143
152
 
144
153
  // Do this as the first thing so that any code reading it knows the right env.
145
154
  process.env.NODE_ENV = 'production';
146
- const configSyncCICommand = await import('../../dist/config-sync-ci-f2adf187.esm.js');
155
+ const configSyncCICommand = await import('../../dist/config-sync-ci-9c50ed6f.esm.js');
147
156
  await configSyncCICommand.default(options);
148
157
  });
149
158
 
@@ -157,7 +166,7 @@ async function run() {
157
166
 
158
167
  // Do this as the first thing so that any code reading it knows the right env.
159
168
  process.env.NODE_ENV = 'production';
160
- const deploymentsSetCommand = await import('../../dist/deployment-previews-set-6ceff6a3.esm.js');
169
+ const deploymentsSetCommand = await import('../../dist/deployment-previews-set-4b020cb4.esm.js');
161
170
  await deploymentsSetCommand.default(options);
162
171
  });
163
172
  program.parse();
@@ -10,7 +10,7 @@ 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-010a6fb4.cjs.dev.js');
13
+ var createWebpackConfigForProduction = require('./create-webpack-config-for-production-12e257fc.cjs.dev.js');
14
14
  var paths = require('./paths-b76fc753.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');
@@ -40,9 +40,9 @@ require('@babel/runtime-corejs3/core-js-stable/instance/bind');
40
40
  require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
41
41
  require('@babel/runtime-corejs3/core-js-stable/object/assign');
42
42
  require('fs');
43
- require('./create-postcss-config-1b021fb2.cjs.dev.js');
43
+ require('./create-postcss-config-e4c767b4.cjs.dev.js');
44
44
  require('@babel/runtime-corejs3/helpers/slicedToArray');
45
- require('./package-c8f39856.cjs.dev.js');
45
+ require('./package-fe1840f3.cjs.dev.js');
46
46
  require('./optimizations-56be74d6.cjs.dev.js');
47
47
  require('@babel/runtime-corejs3/core-js-stable/object/entries');
48
48
  require('@babel/runtime-corejs3/core-js-stable/instance/includes');
@@ -8,7 +8,7 @@ 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-bb66207f.esm.js';
11
+ import { c as createWebpackConfigForProduction } from './create-webpack-config-for-production-04a7a9f8.esm.js';
12
12
  import { p as paths } from './paths-39f22b8b.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';
@@ -38,9 +38,9 @@ import '@babel/runtime-corejs3/core-js-stable/instance/bind';
38
38
  import '@babel/runtime-corejs3/core-js-stable/instance/reduce';
39
39
  import '@babel/runtime-corejs3/core-js-stable/object/assign';
40
40
  import 'fs';
41
- import './create-postcss-config-505c5a4e.esm.js';
41
+ import './create-postcss-config-f6a5f68b.esm.js';
42
42
  import '@babel/runtime-corejs3/helpers/slicedToArray';
43
- import './package-02f0532d.esm.js';
43
+ import './package-a686a0ee.esm.js';
44
44
  import './optimizations-54382f7b.esm.js';
45
45
  import '@babel/runtime-corejs3/core-js-stable/object/entries';
46
46
  import '@babel/runtime-corejs3/core-js-stable/instance/includes';
@@ -10,7 +10,7 @@ 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-a239ba22.cjs.prod.js');
13
+ var createWebpackConfigForProduction = require('./create-webpack-config-for-production-443f6fe7.cjs.prod.js');
14
14
  var paths = require('./paths-7768b440.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');
@@ -40,9 +40,9 @@ require('@babel/runtime-corejs3/core-js-stable/instance/bind');
40
40
  require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
41
41
  require('@babel/runtime-corejs3/core-js-stable/object/assign');
42
42
  require('fs');
43
- require('./create-postcss-config-434fe673.cjs.prod.js');
43
+ require('./create-postcss-config-3f3bda09.cjs.prod.js');
44
44
  require('@babel/runtime-corejs3/helpers/slicedToArray');
45
- require('./package-dfc9c56b.cjs.prod.js');
45
+ require('./package-62998a4b.cjs.prod.js');
46
46
  require('./optimizations-da5a0cfa.cjs.prod.js');
47
47
  require('@babel/runtime-corejs3/core-js-stable/object/entries');
48
48
  require('@babel/runtime-corejs3/core-js-stable/instance/includes');
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var vendorsToTranspile = require('./vendors-to-transpile-6ab4ea06.cjs.dev.js');
6
6
 
7
7
  // NOTE: This string will be replaced on build time with the package version.
8
- var version = "27.5.0";
8
+ var version = "27.5.1";
9
9
 
10
10
  // These exports are deprecated.
11
11
 
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var vendorsToTranspile = require('./vendors-to-transpile-04a49d40.cjs.prod.js');
6
6
 
7
7
  // NOTE: This string will be replaced on build time with the package version.
8
- var version = "27.5.0";
8
+ var version = "27.5.1";
9
9
 
10
10
  // These exports are deprecated.
11
11
 
@@ -1,7 +1,7 @@
1
1
  export { v as vendorsToTranspile } from './vendors-to-transpile-7dc84a72.esm.js';
2
2
 
3
3
  // NOTE: This string will be replaced on build time with the package version.
4
- var version = "27.5.0";
4
+ var version = "27.5.1";
5
5
 
6
6
  // These exports are deprecated.
7
7
 
@@ -7,9 +7,9 @@ var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/ins
7
7
  var chalk = require('chalk');
8
8
  var prompts = require('prompts');
9
9
  var applicationConfig = require('@commercetools-frontend/application-config');
10
- var configSyncHelpers = require('./config-sync-helpers-165afb6b.cjs.dev.js');
10
+ var configSyncHelpers = require('./config-sync-helpers-178da465.cjs.dev.js');
11
11
  var credentialsStorage$1 = require('./credentials-storage-fd195144.cjs.dev.js');
12
- var graphqlRequests = require('./graphql-requests-86c87041.cjs.dev.js');
12
+ var graphqlRequests = require('./graphql-requests-bd7a3fe9.cjs.dev.js');
13
13
  require('@babel/runtime-corejs3/core-js-stable/json/stringify');
14
14
  require('lodash/omit');
15
15
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
@@ -36,7 +36,7 @@ require('graphql');
36
36
  require('graphql-request');
37
37
  require('@commercetools-frontend/constants');
38
38
  require('@commercetools/http-user-agent');
39
- require('./package-c8f39856.cjs.dev.js');
39
+ require('./package-fe1840f3.cjs.dev.js');
40
40
 
41
41
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
42
42
 
@@ -5,8 +5,8 @@ var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/insta
5
5
  var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
6
6
  var chalk = require('chalk');
7
7
  var applicationConfig = require('@commercetools-frontend/application-config');
8
- var configSyncHelpers = require('./config-sync-helpers-165afb6b.cjs.dev.js');
9
- var graphqlRequests = require('./graphql-requests-86c87041.cjs.dev.js');
8
+ var configSyncHelpers = require('./config-sync-helpers-178da465.cjs.dev.js');
9
+ var graphqlRequests = require('./graphql-requests-bd7a3fe9.cjs.dev.js');
10
10
  var _Date$now = require('@babel/runtime-corejs3/core-js-stable/date/now');
11
11
  var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
12
12
  var jwtDecode = require('jwt-decode');
@@ -31,7 +31,7 @@ require('graphql');
31
31
  require('graphql-request');
32
32
  require('@commercetools-frontend/constants');
33
33
  require('@commercetools/http-user-agent');
34
- require('./package-c8f39856.cjs.dev.js');
34
+ require('./package-fe1840f3.cjs.dev.js');
35
35
  require('@babel/runtime-corejs3/helpers/classCallCheck');
36
36
  require('@babel/runtime-corejs3/helpers/createClass');
37
37
  require('node:fs');
@@ -3,8 +3,8 @@ import _findInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instanc
3
3
  import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/map';
4
4
  import chalk from 'chalk';
5
5
  import { processConfig } from '@commercetools-frontend/application-config';
6
- import { i as isCustomViewData, c as checkCustomApplicationStatus, p as performCreateCustomApplication, a as performUpdateCustomApplication, b as checkCustomViewStatus, d as performCreateCustomView, e as performUpdateCustomView } from './config-sync-helpers-2bf06642.esm.js';
7
- import { f as fetchUserOrganizations } from './graphql-requests-53a1f5dd.esm.js';
6
+ import { i as isCustomViewData, c as checkCustomApplicationStatus, p as performCreateCustomApplication, a as performUpdateCustomApplication, b as checkCustomViewStatus, d as performCreateCustomView, e as performUpdateCustomView } from './config-sync-helpers-bea5f027.esm.js';
7
+ import { f as fetchUserOrganizations } from './graphql-requests-87338c52.esm.js';
8
8
  import _Date$now from '@babel/runtime-corejs3/core-js-stable/date/now';
9
9
  import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
10
10
  import jwtDecode from 'jwt-decode';
@@ -29,7 +29,7 @@ import 'graphql';
29
29
  import 'graphql-request';
30
30
  import '@commercetools-frontend/constants';
31
31
  import '@commercetools/http-user-agent';
32
- import './package-02f0532d.esm.js';
32
+ import './package-a686a0ee.esm.js';
33
33
  import '@babel/runtime-corejs3/helpers/classCallCheck';
34
34
  import '@babel/runtime-corejs3/helpers/createClass';
35
35
  import 'node:fs';
@@ -5,8 +5,8 @@ var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/insta
5
5
  var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
6
6
  var chalk = require('chalk');
7
7
  var applicationConfig = require('@commercetools-frontend/application-config');
8
- var configSyncHelpers = require('./config-sync-helpers-1dad1481.cjs.prod.js');
9
- var graphqlRequests = require('./graphql-requests-4c97fe92.cjs.prod.js');
8
+ var configSyncHelpers = require('./config-sync-helpers-ea628bce.cjs.prod.js');
9
+ var graphqlRequests = require('./graphql-requests-6ead2029.cjs.prod.js');
10
10
  var _Date$now = require('@babel/runtime-corejs3/core-js-stable/date/now');
11
11
  var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
12
12
  var jwtDecode = require('jwt-decode');
@@ -31,7 +31,7 @@ require('graphql');
31
31
  require('graphql-request');
32
32
  require('@commercetools-frontend/constants');
33
33
  require('@commercetools/http-user-agent');
34
- require('./package-dfc9c56b.cjs.prod.js');
34
+ require('./package-62998a4b.cjs.prod.js');
35
35
  require('@babel/runtime-corejs3/helpers/classCallCheck');
36
36
  require('@babel/runtime-corejs3/helpers/createClass');
37
37
  require('node:fs');
@@ -7,9 +7,9 @@ var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/ins
7
7
  var chalk = require('chalk');
8
8
  var prompts = require('prompts');
9
9
  var applicationConfig = require('@commercetools-frontend/application-config');
10
- var configSyncHelpers = require('./config-sync-helpers-1dad1481.cjs.prod.js');
10
+ var configSyncHelpers = require('./config-sync-helpers-ea628bce.cjs.prod.js');
11
11
  var credentialsStorage$1 = require('./credentials-storage-ea1c16dc.cjs.prod.js');
12
- var graphqlRequests = require('./graphql-requests-4c97fe92.cjs.prod.js');
12
+ var graphqlRequests = require('./graphql-requests-6ead2029.cjs.prod.js');
13
13
  require('@babel/runtime-corejs3/core-js-stable/json/stringify');
14
14
  require('lodash/omit');
15
15
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
@@ -36,7 +36,7 @@ require('graphql');
36
36
  require('graphql-request');
37
37
  require('@commercetools-frontend/constants');
38
38
  require('@commercetools/http-user-agent');
39
- require('./package-dfc9c56b.cjs.prod.js');
39
+ require('./package-62998a4b.cjs.prod.js');
40
40
 
41
41
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
42
42
 
@@ -5,9 +5,9 @@ import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/insta
5
5
  import chalk from 'chalk';
6
6
  import prompts from 'prompts';
7
7
  import { processConfig } from '@commercetools-frontend/application-config';
8
- import { i as isCustomViewData, c as checkCustomApplicationStatus, p as performCreateCustomApplication, a as performUpdateCustomApplication, b as checkCustomViewStatus, d as performCreateCustomView, e as performUpdateCustomView } from './config-sync-helpers-2bf06642.esm.js';
8
+ import { i as isCustomViewData, c as checkCustomApplicationStatus, p as performCreateCustomApplication, a as performUpdateCustomApplication, b as checkCustomViewStatus, d as performCreateCustomView, e as performUpdateCustomView } from './config-sync-helpers-bea5f027.esm.js';
9
9
  import { C as CredentialsStorage } from './credentials-storage-67deadc3.esm.js';
10
- import { f as fetchUserOrganizations } from './graphql-requests-53a1f5dd.esm.js';
10
+ import { f as fetchUserOrganizations } from './graphql-requests-87338c52.esm.js';
11
11
  import '@babel/runtime-corejs3/core-js-stable/json/stringify';
12
12
  import 'lodash/omit';
13
13
  import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
@@ -34,7 +34,7 @@ import 'graphql';
34
34
  import 'graphql-request';
35
35
  import '@commercetools-frontend/constants';
36
36
  import '@commercetools/http-user-agent';
37
- import './package-02f0532d.esm.js';
37
+ import './package-a686a0ee.esm.js';
38
38
 
39
39
  const credentialsStorage = new CredentialsStorage();
40
40
  async function promptForOrganization(_ref) {
@@ -18,7 +18,7 @@ var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/ins
18
18
  var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
19
19
  var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
20
20
  var applicationConfig = require('@commercetools-frontend/application-config');
21
- var graphqlRequests = require('./graphql-requests-86c87041.cjs.dev.js');
21
+ var graphqlRequests = require('./graphql-requests-bd7a3fe9.cjs.dev.js');
22
22
 
23
23
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
24
24
 
@@ -16,7 +16,7 @@ import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/insta
16
16
  import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys';
17
17
  import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/map';
18
18
  import { sanitizeSvg } from '@commercetools-frontend/application-config';
19
- import { c as createCustomApplication, u as updateCustomApplication, a as createCustomView, b as updateCustomView, d as fetchCustomApplication, e as fetchCustomView } from './graphql-requests-53a1f5dd.esm.js';
19
+ import { c as createCustomApplication, u as updateCustomApplication, a as createCustomView, b as updateCustomView, d as fetchCustomApplication, e as fetchCustomView } from './graphql-requests-87338c52.esm.js';
20
20
 
21
21
  function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
22
22
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context9, _context0; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context9 = ownKeys(Object(t), !0)).call(_context9, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context0 = ownKeys(Object(t))).call(_context0, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -18,7 +18,7 @@ var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/ins
18
18
  var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
19
19
  var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
20
20
  var applicationConfig = require('@commercetools-frontend/application-config');
21
- var graphqlRequests = require('./graphql-requests-4c97fe92.cjs.prod.js');
21
+ var graphqlRequests = require('./graphql-requests-6ead2029.cjs.prod.js');
22
22
 
23
23
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
24
24
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
4
4
  var path = require('path');
5
- var _package = require('./package-dfc9c56b.cjs.prod.js');
5
+ var _package = require('./package-62998a4b.cjs.prod.js');
6
6
 
7
7
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
4
4
  var path = require('path');
5
- var _package = require('./package-c8f39856.cjs.dev.js');
5
+ var _package = require('./package-fe1840f3.cjs.dev.js');
6
6
 
7
7
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
8
8
 
@@ -1,6 +1,6 @@
1
1
  import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
2
2
  import path from 'path';
3
- import { p as pkgJson } from './package-02f0532d.esm.js';
3
+ import { p as pkgJson } from './package-a686a0ee.esm.js';
4
4
 
5
5
  // This function aims to return the same result as `require.resolve`.
6
6
  // However, resolving a path to a `.css` file does not return the real
@@ -25,7 +25,7 @@ var _createClass = require('@babel/runtime-corejs3/helpers/createClass');
25
25
  var _Object$assign = require('@babel/runtime-corejs3/core-js-stable/object/assign');
26
26
  var applicationConfig = require('@commercetools-frontend/application-config');
27
27
  var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
28
- var createPostcssConfig = require('./create-postcss-config-434fe673.cjs.prod.js');
28
+ var createPostcssConfig = require('./create-postcss-config-3f3bda09.cjs.prod.js');
29
29
  var optimizations = require('./optimizations-da5a0cfa.cjs.prod.js');
30
30
  var paths = require('./paths-7768b440.cjs.prod.js');
31
31
  var vendorsToTranspile = require('./vendors-to-transpile-04a49d40.cjs.prod.js');