@commercetools-frontend/mc-scripts 0.0.0-fec-156-react19-20250526172548 → 0.0.0-fix-serialize-javascript-20260428090559
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.
- package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.d.ts +2 -2
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.d.ts +2 -2
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.dev.js +28 -10
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +28 -10
- package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +28 -10
- package/dist/{build-ad5a43b5.esm.js → build-49cdc27a.esm.js} +8 -6
- package/dist/{build-4dca0437.cjs.prod.js → build-52764269.cjs.prod.js} +8 -6
- package/dist/{build-0eb9703e.cjs.dev.js → build-b0fd8f79.cjs.dev.js} +8 -6
- package/dist/build-vite-1526e4f8.esm.js +335 -0
- package/dist/build-vite-2fb9320e.cjs.dev.js +358 -0
- package/dist/build-vite-71889a4a.cjs.prod.js +358 -0
- package/dist/commercetools-frontend-mc-scripts.cjs.d.ts +2 -2
- package/dist/commercetools-frontend-mc-scripts.cjs.dev.js +1 -1
- package/dist/commercetools-frontend-mc-scripts.cjs.prod.js +1 -1
- package/dist/commercetools-frontend-mc-scripts.esm.js +1 -1
- package/dist/config-sync-20dae09d.cjs.prod.js +265 -0
- package/dist/config-sync-36e62b4b.esm.js +255 -0
- package/dist/config-sync-b55f8f1a.cjs.dev.js +265 -0
- package/dist/config-sync-ci-2d50e1e5.cjs.prod.js +305 -0
- package/dist/config-sync-ci-78bf7074.esm.js +294 -0
- package/dist/config-sync-ci-ea128820.cjs.dev.js +305 -0
- package/dist/{config-sync-f796ceaa.cjs.dev.js → config-sync-helpers-49bc36cf.cjs.dev.js} +180 -302
- package/dist/{config-sync-8ac198e3.esm.js → config-sync-helpers-63865ba1.esm.js} +171 -298
- package/dist/{config-sync-284ad697.cjs.prod.js → config-sync-helpers-c2d3579b.cjs.prod.js} +180 -302
- package/dist/{create-postcss-config-3aa3ad14.cjs.prod.js → create-postcss-config-4cebfa5d.cjs.prod.js} +1 -1
- package/dist/{create-postcss-config-45a956cd.esm.js → create-postcss-config-b10fc87d.esm.js} +1 -1
- package/dist/{create-postcss-config-a88b1be4.cjs.dev.js → create-postcss-config-f1c656e7.cjs.dev.js} +1 -1
- package/dist/{create-webpack-config-for-development-f60f6713.cjs.dev.js → create-webpack-config-for-development-51b28243.cjs.dev.js} +9 -9
- package/dist/{create-webpack-config-for-development-97f4e75a.esm.js → create-webpack-config-for-development-ddd68e4f.esm.js} +7 -7
- package/dist/{create-webpack-config-for-development-1c36c289.cjs.prod.js → create-webpack-config-for-development-f6b2bbd1.cjs.prod.js} +9 -9
- package/dist/{create-webpack-config-for-production-13842170.cjs.prod.js → create-webpack-config-for-production-2419390b.cjs.prod.js} +19 -21
- package/dist/{create-webpack-config-for-production-003b84e0.esm.js → create-webpack-config-for-production-3e659e98.esm.js} +16 -18
- package/dist/{create-webpack-config-for-production-5cb59773.cjs.dev.js → create-webpack-config-for-production-fbd1ac41.cjs.dev.js} +19 -21
- package/dist/{credentials-storage-8d613fb2.esm.js → credentials-storage-67deadc3.esm.js} +31 -21
- package/dist/{credentials-storage-1dd707d3.cjs.prod.js → credentials-storage-ea1c16dc.cjs.prod.js} +30 -22
- package/dist/{credentials-storage-2b6e7410.cjs.dev.js → credentials-storage-fd195144.cjs.dev.js} +30 -22
- package/dist/declarations/src/cli.d.ts +1 -1
- package/dist/declarations/src/config/create-postcss-config.d.ts +1 -1
- package/dist/declarations/src/config/create-webpack-config-for-development.d.ts +1 -1
- package/dist/declarations/src/config/create-webpack-config-for-production.d.ts +1 -1
- package/dist/declarations/src/deprecated-entry-points.d.ts +1 -1
- package/dist/declarations/src/index.d.ts +3 -3
- package/dist/declarations/src/postcss.d.ts +1 -1
- package/dist/declarations/src/types.d.ts +10 -0
- package/dist/declarations/src/webpack.d.ts +2 -2
- package/dist/{deployment-previews-set-75e04497.cjs.dev.js → deployment-previews-set-211ee48f.cjs.dev.js} +4 -4
- package/dist/{deployment-previews-set-f30a649e.cjs.prod.js → deployment-previews-set-96e36936.cjs.prod.js} +4 -4
- package/dist/{deployment-previews-set-ff15e7c1.esm.js → deployment-previews-set-a6716403.esm.js} +4 -4
- package/dist/{graphql-requests-d93d1f12.cjs.prod.js → graphql-requests-7980886f.cjs.dev.js} +15 -6
- package/dist/{graphql-requests-66e677c8.cjs.dev.js → graphql-requests-8ef0acd5.cjs.prod.js} +15 -6
- package/dist/{graphql-requests-4b27f0a8.esm.js → graphql-requests-c1a1cd1a.esm.js} +14 -6
- package/dist/login-0ee7e51d.cjs.dev.js +376 -0
- package/dist/login-1e72a339.esm.js +337 -0
- package/dist/login-278c73f7.cjs.prod.js +376 -0
- package/dist/{optimizations-bf991634.esm.js → optimizations-54382f7b.esm.js} +24 -9
- package/dist/{optimizations-7789145e.cjs.dev.js → optimizations-56be74d6.cjs.dev.js} +24 -9
- package/dist/{optimizations-fb93514f.cjs.prod.js → optimizations-da5a0cfa.cjs.prod.js} +24 -9
- package/dist/{package-824df6e1.cjs.prod.js → package-1e68c72e.cjs.dev.js} +46 -37
- package/dist/{package-675e824d.esm.js → package-6f1785d1.esm.js} +46 -37
- package/dist/{package-16a3fb1b.cjs.dev.js → package-910bfb16.cjs.prod.js} +46 -37
- package/dist/serve-4062385a.esm.js +70 -0
- package/dist/serve-5a455e72.cjs.prod.js +81 -0
- package/dist/serve-b9ac0b0c.cjs.dev.js +81 -0
- package/dist/{start-9643b3ed.esm.js → start-30fa4f71.esm.js} +4 -5
- package/dist/{start-a99bc964.cjs.dev.js → start-6e683600.cjs.dev.js} +4 -5
- package/dist/{start-c2af2d53.cjs.prod.js → start-ff3fdd0d.cjs.prod.js} +4 -5
- package/dist/{start-vite-b93c91c5.cjs.dev.js → start-vite-068e9f73.cjs.dev.js} +2 -1
- package/dist/{start-vite-7b4df74e.cjs.prod.js → start-vite-29078b3a.cjs.prod.js} +2 -1
- package/dist/{start-vite-91fe1256.esm.js → start-vite-7d1161e8.esm.js} +2 -1
- package/dist/{vite-plugin-svgr-7fb42bbf.cjs.dev.js → vite-plugin-svgr-4034a834.cjs.prod.js} +44 -1
- package/dist/{vite-plugin-svgr-b080c510.cjs.prod.js → vite-plugin-svgr-7d06f400.cjs.dev.js} +44 -1
- package/dist/{vite-plugin-svgr-069f402d.esm.js → vite-plugin-svgr-de6ee7da.esm.js} +43 -1
- package/package.json +46 -37
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.d.ts +2 -2
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.dev.js +2 -2
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.prod.js +2 -2
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.esm.js +2 -2
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.d.ts +2 -2
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.dev.js +5 -6
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +5 -6
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +5 -6
- package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.d.ts +3 -3
- package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.d.ts.map +0 -1
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.d.ts.map +0 -1
- package/dist/build-vite-23f6852c.esm.js +0 -199
- package/dist/build-vite-44c5100f.cjs.prod.js +0 -211
- package/dist/build-vite-8131eae2.cjs.dev.js +0 -211
- package/dist/commercetools-frontend-mc-scripts.cjs.d.ts.map +0 -1
- package/dist/declarations/src/commands/build-vite.d.ts +0 -2
- package/dist/declarations/src/commands/build.d.ts +0 -2
- package/dist/declarations/src/commands/compile-html.d.ts +0 -3
- package/dist/declarations/src/commands/config-sync.d.ts +0 -3
- package/dist/declarations/src/commands/deployment-previews-set.d.ts +0 -3
- package/dist/declarations/src/commands/login.d.ts +0 -2
- package/dist/declarations/src/commands/serve.d.ts +0 -2
- package/dist/declarations/src/commands/start-vite.d.ts +0 -2
- package/dist/declarations/src/commands/start.d.ts +0 -2
- package/dist/declarations/src/config/has-jsx-runtime.d.ts +0 -2
- package/dist/declarations/src/config/moment-locales.d.ts +0 -2
- package/dist/declarations/src/config/optimizations.d.ts +0 -2
- package/dist/declarations/src/config/paths.d.ts +0 -12
- package/dist/declarations/src/config/webpack-dev-server.config.d.ts +0 -6
- package/dist/declarations/src/generated/core.d.ts +0 -739
- package/dist/declarations/src/generated/settings.d.ts +0 -2116
- package/dist/declarations/src/utils/auth-callback.d.ts +0 -11
- package/dist/declarations/src/utils/auth.d.ts +0 -6
- package/dist/declarations/src/utils/credentials-storage.d.ts +0 -11
- package/dist/declarations/src/utils/does-file-exist.d.ts +0 -2
- package/dist/declarations/src/utils/get-config-diff.d.ts +0 -3
- package/dist/declarations/src/utils/graphql-requests.d.ts +0 -172
- package/dist/declarations/src/utils/i18n-message-complilation.d.ts +0 -4
- package/dist/declarations/src/utils/non-nullable.d.ts +0 -1
- package/dist/declarations/src/utils/user-agent.d.ts +0 -2
- package/dist/declarations/src/vite-plugins/vite-plugin-dynamic-base-assets-globals.d.ts +0 -3
- package/dist/declarations/src/vite-plugins/vite-plugin-i18n-message-compilation.d.ts +0 -3
- package/dist/declarations/src/vite-plugins/vite-plugin-merchant-center-customization.d.ts +0 -4
- package/dist/declarations/src/vite-plugins/vite-plugin-svgr.d.ts +0 -3
- package/dist/declarations/src/webpack-plugins/final-stats-writer-plugin.d.ts +0 -12
- package/dist/declarations/src/webpack-plugins/local-html-webpack-plugin.d.ts +0 -5
- package/dist/has-jsx-runtime-aa5d21ee.cjs.dev.js +0 -15
- package/dist/has-jsx-runtime-c3202df5.cjs.prod.js +0 -15
- package/dist/has-jsx-runtime-e3ecb09b.esm.js +0 -13
- package/dist/login-a037620e.esm.js +0 -176
- package/dist/login-b2063e0b.cjs.prod.js +0 -217
- package/dist/login-b22f3832.cjs.dev.js +0 -217
- package/dist/serve-1036c2de.esm.js +0 -55
- package/dist/serve-50d33f0b.cjs.dev.js +0 -64
- package/dist/serve-8a506da6.cjs.prod.js +0 -64
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.d.ts.map +0 -1
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.d.ts.map +0 -1
- package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.d.ts.map +0 -1
package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "../../dist/declarations/src/application-runtime";
|
|
2
|
-
//# sourceMappingURL=
|
|
1
|
+
export * from "../../dist/declarations/src/application-runtime.js";
|
|
2
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWVyY2V0b29scy1mcm9udGVuZC1tYy1zY3JpcHRzLWFwcGxpY2F0aW9uLXJ1bnRpbWUuY2pzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9kaXN0L2RlY2xhcmF0aW9ucy9zcmMvYXBwbGljYXRpb24tcnVudGltZS5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "../../dist/declarations/src/cli";
|
|
2
|
-
//# sourceMappingURL=
|
|
1
|
+
export * from "../../dist/declarations/src/cli.js";
|
|
2
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWVyY2V0b29scy1mcm9udGVuZC1tYy1zY3JpcHRzLWNsaS5janMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2Rpc3QvZGVjbGFyYXRpb25zL3NyYy9jbGkuZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9
|
|
@@ -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-
|
|
13
|
+
var _package = require('../../dist/package-1e68c72e.cjs.dev.js');
|
|
14
14
|
var doesFileExist = require('../../dist/does-file-exist-eb86baca.cjs.dev.js');
|
|
15
15
|
require('node:fs');
|
|
16
16
|
|
|
@@ -54,7 +54,7 @@ async function run() {
|
|
|
54
54
|
console.log('Experimental Vite bundler enabled! 🚀');
|
|
55
55
|
console.log('');
|
|
56
56
|
}
|
|
57
|
-
const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-
|
|
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-6e683600.cjs.dev.js'); });
|
|
58
58
|
await startCommand.default();
|
|
59
59
|
});
|
|
60
60
|
|
|
@@ -73,7 +73,7 @@ async function run() {
|
|
|
73
73
|
console.log('Experimental Vite bundler enabled! 🚀');
|
|
74
74
|
console.log('');
|
|
75
75
|
}
|
|
76
|
-
const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-
|
|
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-b0fd8f79.cjs.dev.js'); });
|
|
77
77
|
await buildCommand.default();
|
|
78
78
|
const shouldAlsoCompile = !options.buildOnly;
|
|
79
79
|
if (shouldAlsoCompile) {
|
|
@@ -109,12 +109,17 @@ async function run() {
|
|
|
109
109
|
|
|
110
110
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
111
111
|
process.env.NODE_ENV = 'production';
|
|
112
|
-
const serveCommand = await Promise.resolve().then(function () { return require('../../dist/serve-
|
|
113
|
-
await serveCommand.default();
|
|
112
|
+
const serveCommand = await Promise.resolve().then(function () { return require('../../dist/serve-b9ac0b0c.cjs.dev.js'); });
|
|
113
|
+
const server = await serveCommand.default();
|
|
114
|
+
const address = server.address();
|
|
115
|
+
const boundPort = address && typeof address === 'object' ? address.port : '?';
|
|
116
|
+
console.log(`Running at http://localhost:${boundPort}`);
|
|
114
117
|
});
|
|
115
118
|
|
|
116
119
|
// Command: login
|
|
117
|
-
commander.program.command('login').description('Log in to your Merchant Center account through the CLI, using the cloud environment information from the Merchant Center customization config file. An API token is generated and stored in a configuration file for the related cloud environment, and valid for 36 hours.').
|
|
120
|
+
commander.program.command('login').description('Log in to your Merchant Center account through the CLI, using the cloud environment information from the Merchant Center customization config file. An API token is generated and stored in a configuration file for the related cloud environment, and valid for 36 hours.').option('--mc-api-url <url>', '(optional) The URL of the Merchant Center API. If not provided, the command will try to read it from the environment variable `MC_API_URL` or the Merchant Center Customization configuration file. In this case, the command needs to be executed from the folder where the Merchant Center Customization configuration file is located.').option('--project-key <key>', '(optional) The project key to issue an API access token for. If not provided, the command will try to read it from the environment variable `CTP_PROJECT_KEY` or the Merchant Center Customization configuration file. In this case, the command needs to be executed from the folder where the Merchant Center Customization configuration file is located.').option('--oauth-scope <scope...>',
|
|
121
|
+
// Variadic option. It allows multiple `--oauth-scope` options to be provided.
|
|
122
|
+
'(optional) The OAuth Scope to request when generating an API access token. Multiple flags are allowed. If not provided, the command will try to read it from the environment variable `CTP_OAUTH_SCOPES` (comma-separated list) or the Merchant Center Customization configuration file. In this case, the command needs to be executed from the folder where the Merchant Center Customization configuration file is located.').option('--force', '(optional) If defined, the command will force the login even if a valid session already exists.', false).option('--headless', '(optional) Use Puppeteer for automated headless login. Requires IDENTITY_EMAIL and IDENTITY_PASSWORD environment variables. Useful for CI/CD environments.', false).action(async options => {
|
|
118
123
|
const globalOptions = commander.program.opts();
|
|
119
124
|
|
|
120
125
|
// Load dotenv files into the process environment.
|
|
@@ -123,8 +128,8 @@ async function run() {
|
|
|
123
128
|
|
|
124
129
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
125
130
|
process.env.NODE_ENV = 'production';
|
|
126
|
-
const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-
|
|
127
|
-
await loginCommand.default();
|
|
131
|
+
const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-0ee7e51d.cjs.dev.js'); });
|
|
132
|
+
await loginCommand.default(options);
|
|
128
133
|
});
|
|
129
134
|
|
|
130
135
|
// Command: config:sync
|
|
@@ -137,10 +142,23 @@ async function run() {
|
|
|
137
142
|
|
|
138
143
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
139
144
|
process.env.NODE_ENV = 'production';
|
|
140
|
-
const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-
|
|
145
|
+
const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-b55f8f1a.cjs.dev.js'); });
|
|
141
146
|
await configSyncCommand.default(options);
|
|
142
147
|
});
|
|
143
148
|
|
|
149
|
+
// Command: config:sync:ci
|
|
150
|
+
commander.program.command('config:sync:ci').description('Synchronizes the local Merchant Center customization config with the Merchant Center (CI mode). ' + 'Designed for non-interactive CI/CD environments.\n\n' + 'Environment variables:\n' + ' MC_ACCESS_TOKEN - Session token for authentication\n' + ' CT_ORGANIZATION_ID - Organization ID (required if multiple orgs)\n' + ' CT_ORGANIZATION_NAME - Organization name (required if multiple orgs)\n\n' + 'On create, outputs the app/view ID to a file in the config directory.\n\n' + 'To obtain MC_ACCESS_TOKEN:\n' + ' Option 1: Run "mc-scripts login --headless" with IDENTITY_EMAIL and IDENTITY_PASSWORD\n' + ' Option 2: Run "mc-scripts login" locally, then extract token from ~/.commercetools/mc-credentials.json\n\n' + 'SSO Authentication:\n' + ' This command does NOT support SSO directly (requires browser interaction).\n' + ' For SSO organizations, use a service account without SSO for CI/CD.').option('--dry-run', '(optional) Executes the command but does not send any mutation request.', false).action(async options => {
|
|
151
|
+
const globalOptions = commander.program.opts();
|
|
152
|
+
|
|
153
|
+
// Load dotenv files into the process environment.
|
|
154
|
+
loadDotEnvFiles(globalOptions);
|
|
155
|
+
|
|
156
|
+
// Do this as the first thing so that any code reading it knows the right env.
|
|
157
|
+
process.env.NODE_ENV = 'production';
|
|
158
|
+
const configSyncCICommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-ci-ea128820.cjs.dev.js'); });
|
|
159
|
+
await configSyncCICommand.default(options);
|
|
160
|
+
});
|
|
161
|
+
|
|
144
162
|
// Command: deployment-previews:set
|
|
145
163
|
commander.program.command('deployment-previews:set').description('Creates or updates a deployment preview for the Custom Application.').option('--alias <deployment-preview-alias>', "(optional) Alias to be used for the deployment preview. If you don't provide an alias, the command will prompt you for it.").option('--url <deployment-preview-url>', "(optional) URL to be used for the deployment preview. If you don't provide a URL, the command will prompt you for it.").option('--dry-run', '(optional) Executes the command but does not send any mutation request.', false).action(async options => {
|
|
146
164
|
const globalOptions = commander.program.opts();
|
|
@@ -151,7 +169,7 @@ async function run() {
|
|
|
151
169
|
|
|
152
170
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
153
171
|
process.env.NODE_ENV = 'production';
|
|
154
|
-
const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-
|
|
172
|
+
const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-211ee48f.cjs.dev.js'); });
|
|
155
173
|
await deploymentsSetCommand.default(options);
|
|
156
174
|
});
|
|
157
175
|
commander.program.parse();
|
|
@@ -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-
|
|
13
|
+
var _package = require('../../dist/package-910bfb16.cjs.prod.js');
|
|
14
14
|
var doesFileExist = require('../../dist/does-file-exist-be53305d.cjs.prod.js');
|
|
15
15
|
require('node:fs');
|
|
16
16
|
|
|
@@ -54,7 +54,7 @@ async function run() {
|
|
|
54
54
|
console.log('Experimental Vite bundler enabled! 🚀');
|
|
55
55
|
console.log('');
|
|
56
56
|
}
|
|
57
|
-
const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-
|
|
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-ff3fdd0d.cjs.prod.js'); });
|
|
58
58
|
await startCommand.default();
|
|
59
59
|
});
|
|
60
60
|
|
|
@@ -73,7 +73,7 @@ async function run() {
|
|
|
73
73
|
console.log('Experimental Vite bundler enabled! 🚀');
|
|
74
74
|
console.log('');
|
|
75
75
|
}
|
|
76
|
-
const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-
|
|
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-52764269.cjs.prod.js'); });
|
|
77
77
|
await buildCommand.default();
|
|
78
78
|
const shouldAlsoCompile = !options.buildOnly;
|
|
79
79
|
if (shouldAlsoCompile) {
|
|
@@ -109,12 +109,17 @@ async function run() {
|
|
|
109
109
|
|
|
110
110
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
111
111
|
process.env.NODE_ENV = 'production';
|
|
112
|
-
const serveCommand = await Promise.resolve().then(function () { return require('../../dist/serve-
|
|
113
|
-
await serveCommand.default();
|
|
112
|
+
const serveCommand = await Promise.resolve().then(function () { return require('../../dist/serve-5a455e72.cjs.prod.js'); });
|
|
113
|
+
const server = await serveCommand.default();
|
|
114
|
+
const address = server.address();
|
|
115
|
+
const boundPort = address && typeof address === 'object' ? address.port : '?';
|
|
116
|
+
console.log(`Running at http://localhost:${boundPort}`);
|
|
114
117
|
});
|
|
115
118
|
|
|
116
119
|
// Command: login
|
|
117
|
-
commander.program.command('login').description('Log in to your Merchant Center account through the CLI, using the cloud environment information from the Merchant Center customization config file. An API token is generated and stored in a configuration file for the related cloud environment, and valid for 36 hours.').
|
|
120
|
+
commander.program.command('login').description('Log in to your Merchant Center account through the CLI, using the cloud environment information from the Merchant Center customization config file. An API token is generated and stored in a configuration file for the related cloud environment, and valid for 36 hours.').option('--mc-api-url <url>', '(optional) The URL of the Merchant Center API. If not provided, the command will try to read it from the environment variable `MC_API_URL` or the Merchant Center Customization configuration file. In this case, the command needs to be executed from the folder where the Merchant Center Customization configuration file is located.').option('--project-key <key>', '(optional) The project key to issue an API access token for. If not provided, the command will try to read it from the environment variable `CTP_PROJECT_KEY` or the Merchant Center Customization configuration file. In this case, the command needs to be executed from the folder where the Merchant Center Customization configuration file is located.').option('--oauth-scope <scope...>',
|
|
121
|
+
// Variadic option. It allows multiple `--oauth-scope` options to be provided.
|
|
122
|
+
'(optional) The OAuth Scope to request when generating an API access token. Multiple flags are allowed. If not provided, the command will try to read it from the environment variable `CTP_OAUTH_SCOPES` (comma-separated list) or the Merchant Center Customization configuration file. In this case, the command needs to be executed from the folder where the Merchant Center Customization configuration file is located.').option('--force', '(optional) If defined, the command will force the login even if a valid session already exists.', false).option('--headless', '(optional) Use Puppeteer for automated headless login. Requires IDENTITY_EMAIL and IDENTITY_PASSWORD environment variables. Useful for CI/CD environments.', false).action(async options => {
|
|
118
123
|
const globalOptions = commander.program.opts();
|
|
119
124
|
|
|
120
125
|
// Load dotenv files into the process environment.
|
|
@@ -123,8 +128,8 @@ async function run() {
|
|
|
123
128
|
|
|
124
129
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
125
130
|
process.env.NODE_ENV = 'production';
|
|
126
|
-
const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-
|
|
127
|
-
await loginCommand.default();
|
|
131
|
+
const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-278c73f7.cjs.prod.js'); });
|
|
132
|
+
await loginCommand.default(options);
|
|
128
133
|
});
|
|
129
134
|
|
|
130
135
|
// Command: config:sync
|
|
@@ -137,10 +142,23 @@ async function run() {
|
|
|
137
142
|
|
|
138
143
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
139
144
|
process.env.NODE_ENV = 'production';
|
|
140
|
-
const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-
|
|
145
|
+
const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-20dae09d.cjs.prod.js'); });
|
|
141
146
|
await configSyncCommand.default(options);
|
|
142
147
|
});
|
|
143
148
|
|
|
149
|
+
// Command: config:sync:ci
|
|
150
|
+
commander.program.command('config:sync:ci').description('Synchronizes the local Merchant Center customization config with the Merchant Center (CI mode). ' + 'Designed for non-interactive CI/CD environments.\n\n' + 'Environment variables:\n' + ' MC_ACCESS_TOKEN - Session token for authentication\n' + ' CT_ORGANIZATION_ID - Organization ID (required if multiple orgs)\n' + ' CT_ORGANIZATION_NAME - Organization name (required if multiple orgs)\n\n' + 'On create, outputs the app/view ID to a file in the config directory.\n\n' + 'To obtain MC_ACCESS_TOKEN:\n' + ' Option 1: Run "mc-scripts login --headless" with IDENTITY_EMAIL and IDENTITY_PASSWORD\n' + ' Option 2: Run "mc-scripts login" locally, then extract token from ~/.commercetools/mc-credentials.json\n\n' + 'SSO Authentication:\n' + ' This command does NOT support SSO directly (requires browser interaction).\n' + ' For SSO organizations, use a service account without SSO for CI/CD.').option('--dry-run', '(optional) Executes the command but does not send any mutation request.', false).action(async options => {
|
|
151
|
+
const globalOptions = commander.program.opts();
|
|
152
|
+
|
|
153
|
+
// Load dotenv files into the process environment.
|
|
154
|
+
loadDotEnvFiles(globalOptions);
|
|
155
|
+
|
|
156
|
+
// Do this as the first thing so that any code reading it knows the right env.
|
|
157
|
+
process.env.NODE_ENV = 'production';
|
|
158
|
+
const configSyncCICommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-ci-2d50e1e5.cjs.prod.js'); });
|
|
159
|
+
await configSyncCICommand.default(options);
|
|
160
|
+
});
|
|
161
|
+
|
|
144
162
|
// Command: deployment-previews:set
|
|
145
163
|
commander.program.command('deployment-previews:set').description('Creates or updates a deployment preview for the Custom Application.').option('--alias <deployment-preview-alias>', "(optional) Alias to be used for the deployment preview. If you don't provide an alias, the command will prompt you for it.").option('--url <deployment-preview-url>', "(optional) URL to be used for the deployment preview. If you don't provide a URL, the command will prompt you for it.").option('--dry-run', '(optional) Executes the command but does not send any mutation request.', false).action(async options => {
|
|
146
164
|
const globalOptions = commander.program.opts();
|
|
@@ -151,7 +169,7 @@ async function run() {
|
|
|
151
169
|
|
|
152
170
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
153
171
|
process.env.NODE_ENV = 'production';
|
|
154
|
-
const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-
|
|
172
|
+
const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-96e36936.cjs.prod.js'); });
|
|
155
173
|
await deploymentsSetCommand.default(options);
|
|
156
174
|
});
|
|
157
175
|
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-
|
|
9
|
+
import { p as pkgJson } from '../../dist/package-6f1785d1.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-
|
|
43
|
+
const startCommand = shouldUseExperimentalBundler ? await import('../../dist/start-vite-7d1161e8.esm.js') : await import('../../dist/start-30fa4f71.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-
|
|
62
|
+
const buildCommand = shouldUseExperimentalBundler ? await import('../../dist/build-vite-1526e4f8.esm.js') : await import('../../dist/build-49cdc27a.esm.js');
|
|
63
63
|
await buildCommand.default();
|
|
64
64
|
const shouldAlsoCompile = !options.buildOnly;
|
|
65
65
|
if (shouldAlsoCompile) {
|
|
@@ -95,12 +95,17 @@ 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-
|
|
99
|
-
await serveCommand.default();
|
|
98
|
+
const serveCommand = await import('../../dist/serve-4062385a.esm.js');
|
|
99
|
+
const server = await serveCommand.default();
|
|
100
|
+
const address = server.address();
|
|
101
|
+
const boundPort = address && typeof address === 'object' ? address.port : '?';
|
|
102
|
+
console.log(`Running at http://localhost:${boundPort}`);
|
|
100
103
|
});
|
|
101
104
|
|
|
102
105
|
// Command: login
|
|
103
|
-
program.command('login').description('Log in to your Merchant Center account through the CLI, using the cloud environment information from the Merchant Center customization config file. An API token is generated and stored in a configuration file for the related cloud environment, and valid for 36 hours.').
|
|
106
|
+
program.command('login').description('Log in to your Merchant Center account through the CLI, using the cloud environment information from the Merchant Center customization config file. An API token is generated and stored in a configuration file for the related cloud environment, and valid for 36 hours.').option('--mc-api-url <url>', '(optional) The URL of the Merchant Center API. If not provided, the command will try to read it from the environment variable `MC_API_URL` or the Merchant Center Customization configuration file. In this case, the command needs to be executed from the folder where the Merchant Center Customization configuration file is located.').option('--project-key <key>', '(optional) The project key to issue an API access token for. If not provided, the command will try to read it from the environment variable `CTP_PROJECT_KEY` or the Merchant Center Customization configuration file. In this case, the command needs to be executed from the folder where the Merchant Center Customization configuration file is located.').option('--oauth-scope <scope...>',
|
|
107
|
+
// Variadic option. It allows multiple `--oauth-scope` options to be provided.
|
|
108
|
+
'(optional) The OAuth Scope to request when generating an API access token. Multiple flags are allowed. If not provided, the command will try to read it from the environment variable `CTP_OAUTH_SCOPES` (comma-separated list) or the Merchant Center Customization configuration file. In this case, the command needs to be executed from the folder where the Merchant Center Customization configuration file is located.').option('--force', '(optional) If defined, the command will force the login even if a valid session already exists.', false).option('--headless', '(optional) Use Puppeteer for automated headless login. Requires IDENTITY_EMAIL and IDENTITY_PASSWORD environment variables. Useful for CI/CD environments.', false).action(async options => {
|
|
104
109
|
const globalOptions = program.opts();
|
|
105
110
|
|
|
106
111
|
// Load dotenv files into the process environment.
|
|
@@ -109,8 +114,8 @@ async function run() {
|
|
|
109
114
|
|
|
110
115
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
111
116
|
process.env.NODE_ENV = 'production';
|
|
112
|
-
const loginCommand = await import('../../dist/login-
|
|
113
|
-
await loginCommand.default();
|
|
117
|
+
const loginCommand = await import('../../dist/login-1e72a339.esm.js');
|
|
118
|
+
await loginCommand.default(options);
|
|
114
119
|
});
|
|
115
120
|
|
|
116
121
|
// Command: config:sync
|
|
@@ -123,10 +128,23 @@ async function run() {
|
|
|
123
128
|
|
|
124
129
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
125
130
|
process.env.NODE_ENV = 'production';
|
|
126
|
-
const configSyncCommand = await import('../../dist/config-sync-
|
|
131
|
+
const configSyncCommand = await import('../../dist/config-sync-36e62b4b.esm.js');
|
|
127
132
|
await configSyncCommand.default(options);
|
|
128
133
|
});
|
|
129
134
|
|
|
135
|
+
// Command: config:sync:ci
|
|
136
|
+
program.command('config:sync:ci').description('Synchronizes the local Merchant Center customization config with the Merchant Center (CI mode). ' + 'Designed for non-interactive CI/CD environments.\n\n' + 'Environment variables:\n' + ' MC_ACCESS_TOKEN - Session token for authentication\n' + ' CT_ORGANIZATION_ID - Organization ID (required if multiple orgs)\n' + ' CT_ORGANIZATION_NAME - Organization name (required if multiple orgs)\n\n' + 'On create, outputs the app/view ID to a file in the config directory.\n\n' + 'To obtain MC_ACCESS_TOKEN:\n' + ' Option 1: Run "mc-scripts login --headless" with IDENTITY_EMAIL and IDENTITY_PASSWORD\n' + ' Option 2: Run "mc-scripts login" locally, then extract token from ~/.commercetools/mc-credentials.json\n\n' + 'SSO Authentication:\n' + ' This command does NOT support SSO directly (requires browser interaction).\n' + ' For SSO organizations, use a service account without SSO for CI/CD.').option('--dry-run', '(optional) Executes the command but does not send any mutation request.', false).action(async options => {
|
|
137
|
+
const globalOptions = program.opts();
|
|
138
|
+
|
|
139
|
+
// Load dotenv files into the process environment.
|
|
140
|
+
loadDotEnvFiles(globalOptions);
|
|
141
|
+
|
|
142
|
+
// Do this as the first thing so that any code reading it knows the right env.
|
|
143
|
+
process.env.NODE_ENV = 'production';
|
|
144
|
+
const configSyncCICommand = await import('../../dist/config-sync-ci-78bf7074.esm.js');
|
|
145
|
+
await configSyncCICommand.default(options);
|
|
146
|
+
});
|
|
147
|
+
|
|
130
148
|
// Command: deployment-previews:set
|
|
131
149
|
program.command('deployment-previews:set').description('Creates or updates a deployment preview for the Custom Application.').option('--alias <deployment-preview-alias>', "(optional) Alias to be used for the deployment preview. If you don't provide an alias, the command will prompt you for it.").option('--url <deployment-preview-url>', "(optional) URL to be used for the deployment preview. If you don't provide a URL, the command will prompt you for it.").option('--dry-run', '(optional) Executes the command but does not send any mutation request.', false).action(async options => {
|
|
132
150
|
const globalOptions = program.opts();
|
|
@@ -137,7 +155,7 @@ async function run() {
|
|
|
137
155
|
|
|
138
156
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
139
157
|
process.env.NODE_ENV = 'production';
|
|
140
|
-
const deploymentsSetCommand = await import('../../dist/deployment-previews-set-
|
|
158
|
+
const deploymentsSetCommand = await import('../../dist/deployment-previews-set-a6716403.esm.js');
|
|
141
159
|
await deploymentsSetCommand.default(options);
|
|
142
160
|
});
|
|
143
161
|
program.parse();
|
|
@@ -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-
|
|
11
|
+
import { c as createWebpackConfigForProduction } from './create-webpack-config-for-production-3e659e98.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';
|
|
@@ -19,8 +19,8 @@ import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor
|
|
|
19
19
|
import '@babel/runtime-corejs3/core-js-stable/object/define-properties';
|
|
20
20
|
import '@babel/runtime-corejs3/core-js-stable/object/define-property';
|
|
21
21
|
import '@babel/runtime-corejs3/helpers/defineProperty';
|
|
22
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
23
22
|
import '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
23
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
24
24
|
import '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
25
25
|
import '@babel/runtime-corejs3/core-js-stable/instance/ends-with';
|
|
26
26
|
import '@babel/runtime-corejs3/core-js-stable/number/is-integer';
|
|
@@ -38,11 +38,10 @@ 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-
|
|
41
|
+
import './create-postcss-config-b10fc87d.esm.js';
|
|
42
42
|
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
43
|
-
import './package-
|
|
44
|
-
import './
|
|
45
|
-
import './optimizations-bf991634.esm.js';
|
|
43
|
+
import './package-6f1785d1.esm.js';
|
|
44
|
+
import './optimizations-54382f7b.esm.js';
|
|
46
45
|
import '@babel/runtime-corejs3/core-js-stable/object/entries';
|
|
47
46
|
import '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
48
47
|
import './vendors-to-transpile-7dc84a72.esm.js';
|
|
@@ -97,6 +96,9 @@ async function run() {
|
|
|
97
96
|
console.log('Creating an optimized production build...');
|
|
98
97
|
const config = hasWebpackConfig ? require(paths.appWebpackConfig) : createWebpackConfigForProduction();
|
|
99
98
|
const compiler = webpack(config);
|
|
99
|
+
if (!compiler) {
|
|
100
|
+
return _Promise.reject(new Error('Failed to create webpack compiler'));
|
|
101
|
+
}
|
|
100
102
|
return new _Promise((resolve, reject) => {
|
|
101
103
|
compiler.run((err, stats) => {
|
|
102
104
|
let messages;
|
|
@@ -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-
|
|
13
|
+
var createWebpackConfigForProduction = require('./create-webpack-config-for-production-2419390b.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');
|
|
@@ -21,8 +21,8 @@ require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descripto
|
|
|
21
21
|
require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
22
22
|
require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
23
23
|
require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
24
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
25
24
|
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
25
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
26
26
|
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
27
27
|
require('@babel/runtime-corejs3/core-js-stable/instance/ends-with');
|
|
28
28
|
require('@babel/runtime-corejs3/core-js-stable/number/is-integer');
|
|
@@ -40,11 +40,10 @@ 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-
|
|
43
|
+
require('./create-postcss-config-4cebfa5d.cjs.prod.js');
|
|
44
44
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
45
|
-
require('./package-
|
|
46
|
-
require('./
|
|
47
|
-
require('./optimizations-fb93514f.cjs.prod.js');
|
|
45
|
+
require('./package-910bfb16.cjs.prod.js');
|
|
46
|
+
require('./optimizations-da5a0cfa.cjs.prod.js');
|
|
48
47
|
require('@babel/runtime-corejs3/core-js-stable/object/entries');
|
|
49
48
|
require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
50
49
|
require('./vendors-to-transpile-04a49d40.cjs.prod.js');
|
|
@@ -111,6 +110,9 @@ async function run() {
|
|
|
111
110
|
console.log('Creating an optimized production build...');
|
|
112
111
|
const config = hasWebpackConfig ? require(paths.paths.appWebpackConfig) : createWebpackConfigForProduction.createWebpackConfigForProduction();
|
|
113
112
|
const compiler = webpack__default["default"](config);
|
|
113
|
+
if (!compiler) {
|
|
114
|
+
return _Promise__default["default"].reject(new Error('Failed to create webpack compiler'));
|
|
115
|
+
}
|
|
114
116
|
return new _Promise__default["default"]((resolve, reject) => {
|
|
115
117
|
compiler.run((err, stats) => {
|
|
116
118
|
let messages;
|
|
@@ -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-
|
|
13
|
+
var createWebpackConfigForProduction = require('./create-webpack-config-for-production-fbd1ac41.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');
|
|
@@ -21,8 +21,8 @@ require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descripto
|
|
|
21
21
|
require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
22
22
|
require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
23
23
|
require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
24
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
25
24
|
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
25
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
26
26
|
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
27
27
|
require('@babel/runtime-corejs3/core-js-stable/instance/ends-with');
|
|
28
28
|
require('@babel/runtime-corejs3/core-js-stable/number/is-integer');
|
|
@@ -40,11 +40,10 @@ 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-
|
|
43
|
+
require('./create-postcss-config-f1c656e7.cjs.dev.js');
|
|
44
44
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
45
|
-
require('./package-
|
|
46
|
-
require('./
|
|
47
|
-
require('./optimizations-7789145e.cjs.dev.js');
|
|
45
|
+
require('./package-1e68c72e.cjs.dev.js');
|
|
46
|
+
require('./optimizations-56be74d6.cjs.dev.js');
|
|
48
47
|
require('@babel/runtime-corejs3/core-js-stable/object/entries');
|
|
49
48
|
require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
50
49
|
require('./vendors-to-transpile-6ab4ea06.cjs.dev.js');
|
|
@@ -111,6 +110,9 @@ async function run() {
|
|
|
111
110
|
console.log('Creating an optimized production build...');
|
|
112
111
|
const config = hasWebpackConfig ? require(paths.paths.appWebpackConfig) : createWebpackConfigForProduction.createWebpackConfigForProduction();
|
|
113
112
|
const compiler = webpack__default["default"](config);
|
|
113
|
+
if (!compiler) {
|
|
114
|
+
return _Promise__default["default"].reject(new Error('Failed to create webpack compiler'));
|
|
115
|
+
}
|
|
114
116
|
return new _Promise__default["default"]((resolve, reject) => {
|
|
115
117
|
compiler.run((err, stats) => {
|
|
116
118
|
let messages;
|