@commercetools-frontend/mc-scripts 27.4.2 → 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 (56) hide show
  1. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.dev.js +39 -10
  2. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +39 -10
  3. package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +21 -10
  4. package/dist/{build-b59ae957.cjs.dev.js → build-2cbde331.cjs.dev.js} +3 -3
  5. package/dist/{build-2b934f0c.esm.js → build-4ab9306b.esm.js} +3 -3
  6. package/dist/{build-cebaad1c.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-7bd473d2.cjs.dev.js → config-sync-7ae74804.cjs.dev.js} +3 -3
  11. package/dist/{config-sync-ci-3fabd319.cjs.dev.js → config-sync-ci-732e0c5d.cjs.dev.js} +3 -3
  12. package/dist/{config-sync-ci-ceed6879.esm.js → config-sync-ci-9c50ed6f.esm.js} +3 -3
  13. package/dist/{config-sync-ci-eaa2c74c.cjs.prod.js → config-sync-ci-d3104a62.cjs.prod.js} +3 -3
  14. package/dist/{config-sync-6707192b.cjs.prod.js → config-sync-d3d5d721.cjs.prod.js} +3 -3
  15. package/dist/{config-sync-3be9dd65.esm.js → config-sync-d5c4aa9b.esm.js} +3 -3
  16. package/dist/{config-sync-helpers-9e7101ca.cjs.dev.js → config-sync-helpers-178da465.cjs.dev.js} +1 -1
  17. package/dist/{config-sync-helpers-4c1e6ef7.esm.js → config-sync-helpers-bea5f027.esm.js} +1 -1
  18. package/dist/{config-sync-helpers-2f9ce5e7.cjs.prod.js → config-sync-helpers-ea628bce.cjs.prod.js} +1 -1
  19. package/dist/{create-postcss-config-82c6d99e.cjs.prod.js → create-postcss-config-3f3bda09.cjs.prod.js} +1 -1
  20. package/dist/{create-postcss-config-7cebb3e2.cjs.dev.js → create-postcss-config-e4c767b4.cjs.dev.js} +1 -1
  21. package/dist/{create-postcss-config-040fa794.esm.js → create-postcss-config-f6a5f68b.esm.js} +1 -1
  22. package/dist/{create-webpack-config-for-development-9d0b5ccd.cjs.prod.js → create-webpack-config-for-development-4a2616e9.cjs.prod.js} +1 -1
  23. package/dist/{create-webpack-config-for-development-835be72f.cjs.dev.js → create-webpack-config-for-development-a2df037a.cjs.dev.js} +1 -1
  24. package/dist/{create-webpack-config-for-development-5fba3c63.esm.js → create-webpack-config-for-development-c6e48557.esm.js} +1 -1
  25. package/dist/{create-webpack-config-for-production-1c770191.esm.js → create-webpack-config-for-production-04a7a9f8.esm.js} +1 -1
  26. package/dist/{create-webpack-config-for-production-ffeb4a22.cjs.dev.js → create-webpack-config-for-production-12e257fc.cjs.dev.js} +1 -1
  27. package/dist/{create-webpack-config-for-production-8c3f894b.cjs.prod.js → create-webpack-config-for-production-443f6fe7.cjs.prod.js} +1 -1
  28. package/dist/declarations/src/types.d.ts +3 -0
  29. package/dist/{deployment-previews-set-6dd7e367.cjs.prod.js → deployment-previews-set-2b334c11.cjs.prod.js} +2 -2
  30. package/dist/{deployment-previews-set-68c37d9d.cjs.dev.js → deployment-previews-set-491442d7.cjs.dev.js} +2 -2
  31. package/dist/{deployment-previews-set-add2d9c6.esm.js → deployment-previews-set-4b020cb4.esm.js} +2 -2
  32. package/dist/{graphql-requests-5e31d639.cjs.prod.js → graphql-requests-6ead2029.cjs.prod.js} +1 -1
  33. package/dist/{graphql-requests-c07e7b8f.esm.js → graphql-requests-87338c52.esm.js} +1 -1
  34. package/dist/{graphql-requests-24e04c13.cjs.dev.js → graphql-requests-bd7a3fe9.cjs.dev.js} +1 -1
  35. package/dist/{login-c05816f1.cjs.prod.js → login-26cfe1af.cjs.prod.js} +1 -1
  36. package/dist/{login-a1ad5f07.cjs.dev.js → login-2d10deff.cjs.dev.js} +1 -1
  37. package/dist/{login-af2522fd.esm.js → login-ab249036.esm.js} +1 -1
  38. package/dist/{package-d75d6b9f.cjs.prod.js → package-62998a4b.cjs.prod.js} +12 -12
  39. package/dist/{package-14789720.esm.js → package-a686a0ee.esm.js} +12 -12
  40. package/dist/{package-6dcc2c4f.cjs.dev.js → package-fe1840f3.cjs.dev.js} +12 -12
  41. package/dist/serve-22475fec.esm.js +80 -0
  42. package/dist/serve-3837602d.cjs.prod.js +91 -0
  43. package/dist/serve-b1c12985.cjs.dev.js +91 -0
  44. package/dist/{start-f52d8e68.cjs.prod.js → start-19facf6d.cjs.prod.js} +3 -3
  45. package/dist/{start-c9b32028.esm.js → start-3c1e5902.esm.js} +3 -3
  46. package/dist/{start-f93cb36f.cjs.dev.js → start-9b1252f9.cjs.dev.js} +3 -3
  47. package/package.json +12 -12
  48. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.dev.js +2 -2
  49. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.prod.js +2 -2
  50. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.esm.js +2 -2
  51. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.dev.js +4 -4
  52. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +4 -4
  53. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +4 -4
  54. package/dist/serve-4062385a.esm.js +0 -70
  55. package/dist/serve-5a455e72.cjs.prod.js +0 -81
  56. package/dist/serve-b9ac0b0c.cjs.dev.js +0 -81
@@ -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-6dcc2c4f.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-f93cb36f.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-b59ae957.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.').action(async () => {
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,8 +127,19 @@ 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-b9ac0b0c.cjs.dev.js'); });
113
- const server = await serveCommand.default();
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'); });
139
+ const server = await serveCommand.default({
140
+ handleAuthRoutes,
141
+ applicationConfig
142
+ });
114
143
  const address = server.address();
115
144
  const boundPort = address && typeof address === 'object' ? address.port : '?';
116
145
  console.log(`Running at http://localhost:${boundPort}`);
@@ -128,7 +157,7 @@ async function run() {
128
157
 
129
158
  // Do this as the first thing so that any code reading it knows the right env.
130
159
  process.env.NODE_ENV = 'production';
131
- const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-a1ad5f07.cjs.dev.js'); });
160
+ const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-2d10deff.cjs.dev.js'); });
132
161
  await loginCommand.default(options);
133
162
  });
134
163
 
@@ -142,7 +171,7 @@ async function run() {
142
171
 
143
172
  // Do this as the first thing so that any code reading it knows the right env.
144
173
  process.env.NODE_ENV = 'production';
145
- const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-7bd473d2.cjs.dev.js'); });
174
+ const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-7ae74804.cjs.dev.js'); });
146
175
  await configSyncCommand.default(options);
147
176
  });
148
177
 
@@ -155,7 +184,7 @@ async function run() {
155
184
 
156
185
  // Do this as the first thing so that any code reading it knows the right env.
157
186
  process.env.NODE_ENV = 'production';
158
- const configSyncCICommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-ci-3fabd319.cjs.dev.js'); });
187
+ const configSyncCICommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-ci-732e0c5d.cjs.dev.js'); });
159
188
  await configSyncCICommand.default(options);
160
189
  });
161
190
 
@@ -169,7 +198,7 @@ async function run() {
169
198
 
170
199
  // Do this as the first thing so that any code reading it knows the right env.
171
200
  process.env.NODE_ENV = 'production';
172
- const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-68c37d9d.cjs.dev.js'); });
201
+ const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-491442d7.cjs.dev.js'); });
173
202
  await deploymentsSetCommand.default(options);
174
203
  });
175
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-d75d6b9f.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-f52d8e68.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-cebaad1c.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.').action(async () => {
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,8 +127,19 @@ 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-5a455e72.cjs.prod.js'); });
113
- const server = await serveCommand.default();
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'); });
139
+ const server = await serveCommand.default({
140
+ handleAuthRoutes,
141
+ applicationConfig
142
+ });
114
143
  const address = server.address();
115
144
  const boundPort = address && typeof address === 'object' ? address.port : '?';
116
145
  console.log(`Running at http://localhost:${boundPort}`);
@@ -128,7 +157,7 @@ async function run() {
128
157
 
129
158
  // Do this as the first thing so that any code reading it knows the right env.
130
159
  process.env.NODE_ENV = 'production';
131
- const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-c05816f1.cjs.prod.js'); });
160
+ const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-26cfe1af.cjs.prod.js'); });
132
161
  await loginCommand.default(options);
133
162
  });
134
163
 
@@ -142,7 +171,7 @@ async function run() {
142
171
 
143
172
  // Do this as the first thing so that any code reading it knows the right env.
144
173
  process.env.NODE_ENV = 'production';
145
- const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-6707192b.cjs.prod.js'); });
174
+ const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-d3d5d721.cjs.prod.js'); });
146
175
  await configSyncCommand.default(options);
147
176
  });
148
177
 
@@ -155,7 +184,7 @@ async function run() {
155
184
 
156
185
  // Do this as the first thing so that any code reading it knows the right env.
157
186
  process.env.NODE_ENV = 'production';
158
- const configSyncCICommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-ci-eaa2c74c.cjs.prod.js'); });
187
+ const configSyncCICommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-ci-d3104a62.cjs.prod.js'); });
159
188
  await configSyncCICommand.default(options);
160
189
  });
161
190
 
@@ -169,7 +198,7 @@ async function run() {
169
198
 
170
199
  // Do this as the first thing so that any code reading it knows the right env.
171
200
  process.env.NODE_ENV = 'production';
172
- const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-6dd7e367.cjs.prod.js'); });
201
+ const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-2b334c11.cjs.prod.js'); });
173
202
  await deploymentsSetCommand.default(options);
174
203
  });
175
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-14789720.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-c9b32028.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-2b934f0c.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.').action(async () => {
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,8 +95,19 @@ 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-4062385a.esm.js');
99
- const server = await serveCommand.default();
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');
107
+ const server = await serveCommand.default({
108
+ handleAuthRoutes,
109
+ applicationConfig
110
+ });
100
111
  const address = server.address();
101
112
  const boundPort = address && typeof address === 'object' ? address.port : '?';
102
113
  console.log(`Running at http://localhost:${boundPort}`);
@@ -114,7 +125,7 @@ async function run() {
114
125
 
115
126
  // Do this as the first thing so that any code reading it knows the right env.
116
127
  process.env.NODE_ENV = 'production';
117
- const loginCommand = await import('../../dist/login-af2522fd.esm.js');
128
+ const loginCommand = await import('../../dist/login-ab249036.esm.js');
118
129
  await loginCommand.default(options);
119
130
  });
120
131
 
@@ -128,7 +139,7 @@ async function run() {
128
139
 
129
140
  // Do this as the first thing so that any code reading it knows the right env.
130
141
  process.env.NODE_ENV = 'production';
131
- const configSyncCommand = await import('../../dist/config-sync-3be9dd65.esm.js');
142
+ const configSyncCommand = await import('../../dist/config-sync-d5c4aa9b.esm.js');
132
143
  await configSyncCommand.default(options);
133
144
  });
134
145
 
@@ -141,7 +152,7 @@ async function run() {
141
152
 
142
153
  // Do this as the first thing so that any code reading it knows the right env.
143
154
  process.env.NODE_ENV = 'production';
144
- const configSyncCICommand = await import('../../dist/config-sync-ci-ceed6879.esm.js');
155
+ const configSyncCICommand = await import('../../dist/config-sync-ci-9c50ed6f.esm.js');
145
156
  await configSyncCICommand.default(options);
146
157
  });
147
158
 
@@ -155,7 +166,7 @@ async function run() {
155
166
 
156
167
  // Do this as the first thing so that any code reading it knows the right env.
157
168
  process.env.NODE_ENV = 'production';
158
- const deploymentsSetCommand = await import('../../dist/deployment-previews-set-add2d9c6.esm.js');
169
+ const deploymentsSetCommand = await import('../../dist/deployment-previews-set-4b020cb4.esm.js');
159
170
  await deploymentsSetCommand.default(options);
160
171
  });
161
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-ffeb4a22.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-7cebb3e2.cjs.dev.js');
43
+ require('./create-postcss-config-e4c767b4.cjs.dev.js');
44
44
  require('@babel/runtime-corejs3/helpers/slicedToArray');
45
- require('./package-6dcc2c4f.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-1c770191.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-040fa794.esm.js';
41
+ import './create-postcss-config-f6a5f68b.esm.js';
42
42
  import '@babel/runtime-corejs3/helpers/slicedToArray';
43
- import './package-14789720.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-8c3f894b.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-82c6d99e.cjs.prod.js');
43
+ require('./create-postcss-config-3f3bda09.cjs.prod.js');
44
44
  require('@babel/runtime-corejs3/helpers/slicedToArray');
45
- require('./package-d75d6b9f.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.4.2";
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.4.2";
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.4.2";
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-9e7101ca.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-24e04c13.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-6dcc2c4f.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-9e7101ca.cjs.dev.js');
9
- var graphqlRequests = require('./graphql-requests-24e04c13.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-6dcc2c4f.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-4c1e6ef7.esm.js';
7
- import { f as fetchUserOrganizations } from './graphql-requests-c07e7b8f.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-14789720.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-2f9ce5e7.cjs.prod.js');
9
- var graphqlRequests = require('./graphql-requests-5e31d639.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-d75d6b9f.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-2f9ce5e7.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-5e31d639.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-d75d6b9f.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-4c1e6ef7.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-c07e7b8f.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-14789720.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-24e04c13.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-c07e7b8f.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-5e31d639.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-d75d6b9f.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-6dcc2c4f.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-14789720.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-82c6d99e.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');