@commercetools-frontend/mc-scripts 22.30.3 → 22.31.0
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.dev.js +1 -1
- package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.prod.js +1 -1
- package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.esm.js +1 -1
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.dev.js +19 -19
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +19 -19
- package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +19 -19
- package/dist/{build-374d5127.cjs.dev.js → build-08fc2868.cjs.dev.js} +6 -6
- package/dist/{build-f8f96d22.esm.js → build-b00da074.esm.js} +6 -6
- package/dist/{build-ed58afd4.cjs.prod.js → build-bfc9ead3.cjs.prod.js} +6 -6
- package/dist/{build-vite-87662f4d.cjs.dev.js → build-vite-14eeea5d.cjs.dev.js} +7 -8
- package/dist/{build-vite-b19a39fb.esm.js → build-vite-71767c7d.esm.js} +7 -8
- package/dist/{build-vite-c7ccff49.cjs.prod.js → build-vite-cefb3775.cjs.prod.js} +7 -8
- 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/{compile-html-adfef598.esm.js → compile-html-025cd493.esm.js} +2 -4
- package/dist/{compile-html-b80f9651.cjs.prod.js → compile-html-50fd05ec.cjs.prod.js} +2 -5
- package/dist/{compile-html-8679f721.cjs.dev.js → compile-html-f4ac88cc.cjs.dev.js} +2 -5
- package/dist/{config-sync-936e72db.cjs.prod.js → config-sync-a76e45e3.cjs.prod.js} +64 -74
- package/dist/{config-sync-91025b05.cjs.dev.js → config-sync-b2172892.cjs.dev.js} +66 -76
- package/dist/{config-sync-165bac10.esm.js → config-sync-e5aa853f.esm.js} +66 -75
- package/dist/{create-postcss-config-c68f6c12.cjs.prod.js → create-postcss-config-4636f5c9.cjs.prod.js} +1 -1
- package/dist/{create-postcss-config-3f8a8a1e.cjs.dev.js → create-postcss-config-ce058cc5.cjs.dev.js} +1 -1
- package/dist/{create-postcss-config-bb20f68b.esm.js → create-postcss-config-e3ad83aa.esm.js} +1 -1
- package/dist/{create-webpack-config-for-development-6b10522d.cjs.dev.js → create-webpack-config-for-development-154ee43f.cjs.dev.js} +5 -5
- package/dist/{create-webpack-config-for-development-96dc8df0.esm.js → create-webpack-config-for-development-aabb9a02.esm.js} +5 -5
- package/dist/{create-webpack-config-for-development-036fc76e.cjs.prod.js → create-webpack-config-for-development-b65498a3.cjs.prod.js} +5 -5
- package/dist/{create-webpack-config-for-production-41e85090.cjs.dev.js → create-webpack-config-for-production-ce81f82b.cjs.dev.js} +6 -6
- package/dist/{create-webpack-config-for-production-9014c389.esm.js → create-webpack-config-for-production-e8ba7a77.esm.js} +6 -6
- package/dist/{create-webpack-config-for-production-faf72b43.cjs.prod.js → create-webpack-config-for-production-f2aadce3.cjs.prod.js} +6 -6
- package/dist/{credentials-storage-cf1518cc.cjs.prod.js → credentials-storage-cac35ba6.cjs.prod.js} +2 -2
- package/dist/{credentials-storage-2dc3e10a.cjs.dev.js → credentials-storage-e3abd27b.cjs.dev.js} +2 -2
- package/dist/{credentials-storage-fb54bd0e.esm.js → credentials-storage-eb6f9e03.esm.js} +2 -2
- package/dist/{deployment-previews-set-af0b645e.cjs.dev.js → deployment-previews-set-1fd17456.cjs.dev.js} +22 -28
- package/dist/{deployment-previews-set-8b5a0355.cjs.prod.js → deployment-previews-set-3c88d175.cjs.prod.js} +22 -28
- package/dist/{deployment-previews-set-cdb7374b.esm.js → deployment-previews-set-ca0b28cb.esm.js} +22 -27
- package/dist/{graphql-requests-bc69723a.cjs.dev.js → graphql-requests-0887e583.cjs.prod.js} +3 -6
- package/dist/{graphql-requests-95e85cf8.esm.js → graphql-requests-7e319ebc.esm.js} +3 -6
- package/dist/{graphql-requests-62dbe8e1.cjs.prod.js → graphql-requests-b05fd260.cjs.dev.js} +3 -6
- package/dist/{i18n-message-complilation-8aec9d1b.esm.js → i18n-message-complilation-21d3b0aa.esm.js} +1 -1
- package/dist/{i18n-message-complilation-3f80e8d6.cjs.dev.js → i18n-message-complilation-7311cb29.cjs.dev.js} +1 -1
- package/dist/{i18n-message-complilation-393d344a.cjs.prod.js → i18n-message-complilation-7762da61.cjs.prod.js} +1 -1
- package/dist/{login-66953929.cjs.dev.js → login-5fa5604e.cjs.dev.js} +8 -8
- package/dist/{login-6aea211e.esm.js → login-7f5bb79c.esm.js} +8 -8
- package/dist/{login-67913f55.cjs.prod.js → login-829a1b56.cjs.prod.js} +8 -8
- package/dist/{package-c9d3b097.cjs.prod.js → package-378cc0b4.cjs.prod.js} +8 -8
- package/dist/{package-25051b09.cjs.dev.js → package-3a9024e1.cjs.dev.js} +8 -8
- package/dist/{package-06d2ecaa.esm.js → package-9a7b7976.esm.js} +8 -8
- package/dist/{paths-7bf7e88e.esm.js → paths-39f22b8b.esm.js} +4 -9
- package/dist/{paths-af1a725a.cjs.prod.js → paths-7768b440.cjs.prod.js} +4 -10
- package/dist/{paths-ec3e3a7d.cjs.dev.js → paths-b76fc753.cjs.dev.js} +4 -10
- package/dist/{serve-7b2e35a1.cjs.prod.js → serve-5666b16a.cjs.prod.js} +2 -3
- package/dist/{serve-5f480513.esm.js → serve-6a951584.esm.js} +2 -3
- package/dist/{serve-efceb930.cjs.dev.js → serve-f898c45e.cjs.dev.js} +2 -3
- package/dist/{start-64e20457.cjs.dev.js → start-58d4a0d4.cjs.dev.js} +7 -8
- package/dist/{start-a6e80001.esm.js → start-7877df72.esm.js} +7 -8
- package/dist/{start-e3f737f4.cjs.prod.js → start-df494b7b.cjs.prod.js} +7 -8
- package/dist/{start-vite-8e72a6a9.cjs.prod.js → start-vite-1f2a92bd.cjs.prod.js} +3 -4
- package/dist/{start-vite-7d25a064.cjs.dev.js → start-vite-ce32d36a.cjs.dev.js} +3 -4
- package/dist/{start-vite-e706f764.esm.js → start-vite-d68b39d3.esm.js} +3 -4
- package/dist/{vite-plugin-svgr-13d96e7a.esm.js → vite-plugin-svgr-069f402d.esm.js} +2 -2
- package/dist/{vite-plugin-svgr-496f5b25.cjs.dev.js → vite-plugin-svgr-7fb42bbf.cjs.dev.js} +2 -2
- package/dist/{vite-plugin-svgr-7def8ea1.cjs.prod.js → vite-plugin-svgr-b080c510.cjs.prod.js} +2 -2
- package/package.json +8 -8
- 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.dev.js +5 -5
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +5 -5
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +5 -5
- package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.dev.js +1 -1
- package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.prod.js +1 -1
- package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.esm.js +1 -1
package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.dev.js
CHANGED
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
// Dynamically inject webpack `publicPath`, for resolving assets locations.
|
|
5
5
|
// https://webpack.js.org/guides/public-path/#on-the-fly
|
|
6
6
|
// https://webpack.js.org/configuration/output/#output-publicpath
|
|
7
|
-
if (process.env.NODE_ENV !== 'test') __webpack_public_path__ =
|
|
7
|
+
if (process.env.NODE_ENV !== 'test') __webpack_public_path__ = `${window.app.cdnUrl.replace(/\/$/, '')}/`;
|
package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.prod.js
CHANGED
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
// Dynamically inject webpack `publicPath`, for resolving assets locations.
|
|
5
5
|
// https://webpack.js.org/guides/public-path/#on-the-fly
|
|
6
6
|
// https://webpack.js.org/configuration/output/#output-publicpath
|
|
7
|
-
__webpack_public_path__ =
|
|
7
|
+
__webpack_public_path__ = `${window.app.cdnUrl.replace(/\/$/, '')}/`;
|
package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.esm.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
// Dynamically inject webpack `publicPath`, for resolving assets locations.
|
|
3
3
|
// https://webpack.js.org/guides/public-path/#on-the-fly
|
|
4
4
|
// https://webpack.js.org/configuration/output/#output-publicpath
|
|
5
|
-
if (process.env.NODE_ENV !== 'test') __webpack_public_path__ =
|
|
5
|
+
if (process.env.NODE_ENV !== 'test') __webpack_public_path__ = `${window.app.cdnUrl.replace(/\/$/, '')}/`;
|
|
@@ -10,7 +10,7 @@ var path = require('path');
|
|
|
10
10
|
var cac = require('cac');
|
|
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-3a9024e1.cjs.dev.js');
|
|
14
14
|
var doesFileExist = require('../../dist/does-file-exist-eb86baca.cjs.dev.js');
|
|
15
15
|
require('node:fs');
|
|
16
16
|
|
|
@@ -36,7 +36,7 @@ process.on('unhandledRejection', err => {
|
|
|
36
36
|
// Get the current directory where the CLI is executed from. Usually this is the application folder.
|
|
37
37
|
const applicationDirectory = fs__default["default"].realpathSync(process.cwd());
|
|
38
38
|
async function run() {
|
|
39
|
-
cli.option('--env <path>',
|
|
39
|
+
cli.option('--env <path>', `(optional) Parses the file path as a dotenv file and adds the variables to the environment. Multiple flags are allowed.`);
|
|
40
40
|
|
|
41
41
|
// Default command
|
|
42
42
|
cli.command('').usage('\n\n Develop and build Custom Applications.').action(() => {
|
|
@@ -45,7 +45,7 @@ async function run() {
|
|
|
45
45
|
|
|
46
46
|
// Command: start
|
|
47
47
|
const usageStart = 'Starts the application in development mode using Webpack Dev Server.';
|
|
48
|
-
cli.command('start', usageStart).usage(
|
|
48
|
+
cli.command('start', usageStart).usage(`\n\n ${usageStart}`).alias('dev').action(async options => {
|
|
49
49
|
// Load dotenv files into the process environment.
|
|
50
50
|
// This is essentially what `dotenv-cli` does, but it's now built into this CLI.
|
|
51
51
|
loadDotEnvFiles(options);
|
|
@@ -58,13 +58,13 @@ async function run() {
|
|
|
58
58
|
console.log('Experimental Vite bundler enabled! 🚀');
|
|
59
59
|
console.log('');
|
|
60
60
|
}
|
|
61
|
-
const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-
|
|
61
|
+
const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-ce32d36a.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-58d4a0d4.cjs.dev.js'); });
|
|
62
62
|
await startCommand.default();
|
|
63
63
|
});
|
|
64
64
|
|
|
65
65
|
// Command: build
|
|
66
66
|
const usageBuild = 'Bundles the application in production mode. Outputs a "public" folder.';
|
|
67
|
-
cli.command('build', usageBuild).usage(
|
|
67
|
+
cli.command('build', usageBuild).usage(`\n\n ${usageBuild}`).option('--build-only', '(optional) If defined, the command only creates the production bundles without compiling the "index.html".', {
|
|
68
68
|
default: false
|
|
69
69
|
}).action(async options => {
|
|
70
70
|
// Load dotenv files into the process environment.
|
|
@@ -79,12 +79,12 @@ async function run() {
|
|
|
79
79
|
console.log('Experimental Vite bundler enabled! 🚀');
|
|
80
80
|
console.log('');
|
|
81
81
|
}
|
|
82
|
-
const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-
|
|
82
|
+
const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-14eeea5d.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-08fc2868.cjs.dev.js'); });
|
|
83
83
|
await buildCommand.default();
|
|
84
84
|
const shouldAlsoCompile = !options.buildOnly;
|
|
85
85
|
if (shouldAlsoCompile) {
|
|
86
86
|
console.log('');
|
|
87
|
-
const compileHtmlCommand = await Promise.resolve().then(function () { return require('../../dist/compile-html-
|
|
87
|
+
const compileHtmlCommand = await Promise.resolve().then(function () { return require('../../dist/compile-html-f4ac88cc.cjs.dev.js'); });
|
|
88
88
|
await compileHtmlCommand.default({
|
|
89
89
|
printSecurityHeaders: false
|
|
90
90
|
});
|
|
@@ -93,7 +93,7 @@ async function run() {
|
|
|
93
93
|
|
|
94
94
|
// Command: compile-html
|
|
95
95
|
const usageCompileHtml = 'Compiles "index.html.template" file into a "index.html" with all the required runtime configuration. The security headers are also compiled and injected into the "index.html".';
|
|
96
|
-
cli.command('compile-html', usageCompileHtml).usage(
|
|
96
|
+
cli.command('compile-html', usageCompileHtml).usage(`\n\n ${usageCompileHtml}`).option('--transformer <path>', '(optional) The path to a JS module that can be used to generate a configuration for a specific cloud provider (e.g. Vercel, Netlify).').option('--print-security-headers', '(optional) If defined, the compiled security headers are printed to stdout.', {
|
|
97
97
|
default: false
|
|
98
98
|
}).action(async options => {
|
|
99
99
|
// Load dotenv files into the process environment.
|
|
@@ -102,39 +102,39 @@ async function run() {
|
|
|
102
102
|
|
|
103
103
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
104
104
|
process.env.NODE_ENV = 'production';
|
|
105
|
-
const compileHtmlCommand = await Promise.resolve().then(function () { return require('../../dist/compile-html-
|
|
105
|
+
const compileHtmlCommand = await Promise.resolve().then(function () { return require('../../dist/compile-html-f4ac88cc.cjs.dev.js'); });
|
|
106
106
|
await compileHtmlCommand.default(options);
|
|
107
107
|
});
|
|
108
108
|
|
|
109
109
|
// Command: serve
|
|
110
110
|
const usageServe = 'Serves previously built and compiled application from the "public" folder.';
|
|
111
|
-
cli.command('serve', usageServe).usage(
|
|
111
|
+
cli.command('serve', usageServe).usage(`\n\n ${usageServe}`).action(async options => {
|
|
112
112
|
// Load dotenv files into the process environment.
|
|
113
113
|
// This is essentially what `dotenv-cli` does, but it's now built into this CLI.
|
|
114
114
|
loadDotEnvFiles(options);
|
|
115
115
|
|
|
116
116
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
117
117
|
process.env.NODE_ENV = 'production';
|
|
118
|
-
const serveCommand = await Promise.resolve().then(function () { return require('../../dist/serve-
|
|
118
|
+
const serveCommand = await Promise.resolve().then(function () { return require('../../dist/serve-f898c45e.cjs.dev.js'); });
|
|
119
119
|
await serveCommand.default();
|
|
120
120
|
});
|
|
121
121
|
|
|
122
122
|
// Command: login
|
|
123
123
|
const usageLogin = '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.';
|
|
124
|
-
cli.command('login', usageLogin).usage(
|
|
124
|
+
cli.command('login', usageLogin).usage(`\n\n ${usageLogin}`).action(async options => {
|
|
125
125
|
// Load dotenv files into the process environment.
|
|
126
126
|
// This is essentially what `dotenv-cli` does, but it's now built into this CLI.
|
|
127
127
|
loadDotEnvFiles(options);
|
|
128
128
|
|
|
129
129
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
130
130
|
process.env.NODE_ENV = 'production';
|
|
131
|
-
const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-
|
|
131
|
+
const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-5fa5604e.cjs.dev.js'); });
|
|
132
132
|
await loginCommand.default();
|
|
133
133
|
});
|
|
134
134
|
|
|
135
135
|
// Command: config:sync
|
|
136
136
|
const usageConfigSync = 'Synchronizes the local Merchant Center customization config with the Merchant Center. A new Merchant Center customization will be created if none existed, otherwise it will be updated.';
|
|
137
|
-
cli.command('config:sync', usageConfigSync).usage(
|
|
137
|
+
cli.command('config:sync', usageConfigSync).usage(`\n\n ${usageConfigSync}`).option('--dry-run', '(optional) Executes the command but does not send any mutation request.', {
|
|
138
138
|
default: false
|
|
139
139
|
}).action(async options => {
|
|
140
140
|
// Load dotenv files into the process environment.
|
|
@@ -143,13 +143,13 @@ async function run() {
|
|
|
143
143
|
|
|
144
144
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
145
145
|
process.env.NODE_ENV = 'production';
|
|
146
|
-
const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-
|
|
146
|
+
const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-b2172892.cjs.dev.js'); });
|
|
147
147
|
await configSyncCommand.default(options);
|
|
148
148
|
});
|
|
149
149
|
|
|
150
150
|
// Command: deployment-previews:set
|
|
151
151
|
const usageDeploymentPreviewsSet = 'Creates or updates a deployment preview for the Custom Application.';
|
|
152
|
-
cli.command('deployment-previews:set', usageDeploymentPreviewsSet).usage(
|
|
152
|
+
cli.command('deployment-previews:set', usageDeploymentPreviewsSet).usage(`\n\n ${usageDeploymentPreviewsSet}`).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.', {
|
|
153
153
|
default: false
|
|
154
154
|
}).action(async options => {
|
|
155
155
|
// Load dotenv files into the process environment.
|
|
@@ -158,7 +158,7 @@ async function run() {
|
|
|
158
158
|
|
|
159
159
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
160
160
|
process.env.NODE_ENV = 'production';
|
|
161
|
-
const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-
|
|
161
|
+
const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-1fd17456.cjs.dev.js'); });
|
|
162
162
|
await deploymentsSetCommand.default(options);
|
|
163
163
|
});
|
|
164
164
|
cli.help();
|
|
@@ -186,11 +186,11 @@ function loadDotEnvFiles(globalOptions) {
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
// https://github.com/bkeepers/dotenv#what-other-env-files-can-i-use
|
|
189
|
-
dotenvFiles.push(..._filterInstanceProperty__default["default"](_context = [
|
|
189
|
+
dotenvFiles.push(..._filterInstanceProperty__default["default"](_context = [`.env.${environment}.local`,
|
|
190
190
|
// Don't include `.env.local` for `test` environment
|
|
191
191
|
// since normally you expect tests to produce the same
|
|
192
192
|
// results for everyone
|
|
193
|
-
process.env.NODE_ENV !== 'test' &&
|
|
193
|
+
process.env.NODE_ENV !== 'test' && `.env.local`, `.env.${environment}`, '.env']).call(_context, Boolean));
|
|
194
194
|
|
|
195
195
|
// Load environment variables from .env* files. Suppress warnings using silent
|
|
196
196
|
// if this file is missing. dotenv will never modify any environment variables
|
|
@@ -10,7 +10,7 @@ var path = require('path');
|
|
|
10
10
|
var cac = require('cac');
|
|
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-378cc0b4.cjs.prod.js');
|
|
14
14
|
var doesFileExist = require('../../dist/does-file-exist-be53305d.cjs.prod.js');
|
|
15
15
|
require('node:fs');
|
|
16
16
|
|
|
@@ -36,7 +36,7 @@ process.on('unhandledRejection', err => {
|
|
|
36
36
|
// Get the current directory where the CLI is executed from. Usually this is the application folder.
|
|
37
37
|
const applicationDirectory = fs__default["default"].realpathSync(process.cwd());
|
|
38
38
|
async function run() {
|
|
39
|
-
cli.option('--env <path>',
|
|
39
|
+
cli.option('--env <path>', `(optional) Parses the file path as a dotenv file and adds the variables to the environment. Multiple flags are allowed.`);
|
|
40
40
|
|
|
41
41
|
// Default command
|
|
42
42
|
cli.command('').usage('\n\n Develop and build Custom Applications.').action(() => {
|
|
@@ -45,7 +45,7 @@ async function run() {
|
|
|
45
45
|
|
|
46
46
|
// Command: start
|
|
47
47
|
const usageStart = 'Starts the application in development mode using Webpack Dev Server.';
|
|
48
|
-
cli.command('start', usageStart).usage(
|
|
48
|
+
cli.command('start', usageStart).usage(`\n\n ${usageStart}`).alias('dev').action(async options => {
|
|
49
49
|
// Load dotenv files into the process environment.
|
|
50
50
|
// This is essentially what `dotenv-cli` does, but it's now built into this CLI.
|
|
51
51
|
loadDotEnvFiles(options);
|
|
@@ -58,13 +58,13 @@ async function run() {
|
|
|
58
58
|
console.log('Experimental Vite bundler enabled! 🚀');
|
|
59
59
|
console.log('');
|
|
60
60
|
}
|
|
61
|
-
const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-
|
|
61
|
+
const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-1f2a92bd.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-df494b7b.cjs.prod.js'); });
|
|
62
62
|
await startCommand.default();
|
|
63
63
|
});
|
|
64
64
|
|
|
65
65
|
// Command: build
|
|
66
66
|
const usageBuild = 'Bundles the application in production mode. Outputs a "public" folder.';
|
|
67
|
-
cli.command('build', usageBuild).usage(
|
|
67
|
+
cli.command('build', usageBuild).usage(`\n\n ${usageBuild}`).option('--build-only', '(optional) If defined, the command only creates the production bundles without compiling the "index.html".', {
|
|
68
68
|
default: false
|
|
69
69
|
}).action(async options => {
|
|
70
70
|
// Load dotenv files into the process environment.
|
|
@@ -79,12 +79,12 @@ async function run() {
|
|
|
79
79
|
console.log('Experimental Vite bundler enabled! 🚀');
|
|
80
80
|
console.log('');
|
|
81
81
|
}
|
|
82
|
-
const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-
|
|
82
|
+
const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-cefb3775.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-bfc9ead3.cjs.prod.js'); });
|
|
83
83
|
await buildCommand.default();
|
|
84
84
|
const shouldAlsoCompile = !options.buildOnly;
|
|
85
85
|
if (shouldAlsoCompile) {
|
|
86
86
|
console.log('');
|
|
87
|
-
const compileHtmlCommand = await Promise.resolve().then(function () { return require('../../dist/compile-html-
|
|
87
|
+
const compileHtmlCommand = await Promise.resolve().then(function () { return require('../../dist/compile-html-50fd05ec.cjs.prod.js'); });
|
|
88
88
|
await compileHtmlCommand.default({
|
|
89
89
|
printSecurityHeaders: false
|
|
90
90
|
});
|
|
@@ -93,7 +93,7 @@ async function run() {
|
|
|
93
93
|
|
|
94
94
|
// Command: compile-html
|
|
95
95
|
const usageCompileHtml = 'Compiles "index.html.template" file into a "index.html" with all the required runtime configuration. The security headers are also compiled and injected into the "index.html".';
|
|
96
|
-
cli.command('compile-html', usageCompileHtml).usage(
|
|
96
|
+
cli.command('compile-html', usageCompileHtml).usage(`\n\n ${usageCompileHtml}`).option('--transformer <path>', '(optional) The path to a JS module that can be used to generate a configuration for a specific cloud provider (e.g. Vercel, Netlify).').option('--print-security-headers', '(optional) If defined, the compiled security headers are printed to stdout.', {
|
|
97
97
|
default: false
|
|
98
98
|
}).action(async options => {
|
|
99
99
|
// Load dotenv files into the process environment.
|
|
@@ -102,39 +102,39 @@ async function run() {
|
|
|
102
102
|
|
|
103
103
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
104
104
|
process.env.NODE_ENV = 'production';
|
|
105
|
-
const compileHtmlCommand = await Promise.resolve().then(function () { return require('../../dist/compile-html-
|
|
105
|
+
const compileHtmlCommand = await Promise.resolve().then(function () { return require('../../dist/compile-html-50fd05ec.cjs.prod.js'); });
|
|
106
106
|
await compileHtmlCommand.default(options);
|
|
107
107
|
});
|
|
108
108
|
|
|
109
109
|
// Command: serve
|
|
110
110
|
const usageServe = 'Serves previously built and compiled application from the "public" folder.';
|
|
111
|
-
cli.command('serve', usageServe).usage(
|
|
111
|
+
cli.command('serve', usageServe).usage(`\n\n ${usageServe}`).action(async options => {
|
|
112
112
|
// Load dotenv files into the process environment.
|
|
113
113
|
// This is essentially what `dotenv-cli` does, but it's now built into this CLI.
|
|
114
114
|
loadDotEnvFiles(options);
|
|
115
115
|
|
|
116
116
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
117
117
|
process.env.NODE_ENV = 'production';
|
|
118
|
-
const serveCommand = await Promise.resolve().then(function () { return require('../../dist/serve-
|
|
118
|
+
const serveCommand = await Promise.resolve().then(function () { return require('../../dist/serve-5666b16a.cjs.prod.js'); });
|
|
119
119
|
await serveCommand.default();
|
|
120
120
|
});
|
|
121
121
|
|
|
122
122
|
// Command: login
|
|
123
123
|
const usageLogin = '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.';
|
|
124
|
-
cli.command('login', usageLogin).usage(
|
|
124
|
+
cli.command('login', usageLogin).usage(`\n\n ${usageLogin}`).action(async options => {
|
|
125
125
|
// Load dotenv files into the process environment.
|
|
126
126
|
// This is essentially what `dotenv-cli` does, but it's now built into this CLI.
|
|
127
127
|
loadDotEnvFiles(options);
|
|
128
128
|
|
|
129
129
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
130
130
|
process.env.NODE_ENV = 'production';
|
|
131
|
-
const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-
|
|
131
|
+
const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-829a1b56.cjs.prod.js'); });
|
|
132
132
|
await loginCommand.default();
|
|
133
133
|
});
|
|
134
134
|
|
|
135
135
|
// Command: config:sync
|
|
136
136
|
const usageConfigSync = 'Synchronizes the local Merchant Center customization config with the Merchant Center. A new Merchant Center customization will be created if none existed, otherwise it will be updated.';
|
|
137
|
-
cli.command('config:sync', usageConfigSync).usage(
|
|
137
|
+
cli.command('config:sync', usageConfigSync).usage(`\n\n ${usageConfigSync}`).option('--dry-run', '(optional) Executes the command but does not send any mutation request.', {
|
|
138
138
|
default: false
|
|
139
139
|
}).action(async options => {
|
|
140
140
|
// Load dotenv files into the process environment.
|
|
@@ -143,13 +143,13 @@ async function run() {
|
|
|
143
143
|
|
|
144
144
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
145
145
|
process.env.NODE_ENV = 'production';
|
|
146
|
-
const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-
|
|
146
|
+
const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-a76e45e3.cjs.prod.js'); });
|
|
147
147
|
await configSyncCommand.default(options);
|
|
148
148
|
});
|
|
149
149
|
|
|
150
150
|
// Command: deployment-previews:set
|
|
151
151
|
const usageDeploymentPreviewsSet = 'Creates or updates a deployment preview for the Custom Application.';
|
|
152
|
-
cli.command('deployment-previews:set', usageDeploymentPreviewsSet).usage(
|
|
152
|
+
cli.command('deployment-previews:set', usageDeploymentPreviewsSet).usage(`\n\n ${usageDeploymentPreviewsSet}`).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.', {
|
|
153
153
|
default: false
|
|
154
154
|
}).action(async options => {
|
|
155
155
|
// Load dotenv files into the process environment.
|
|
@@ -158,7 +158,7 @@ async function run() {
|
|
|
158
158
|
|
|
159
159
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
160
160
|
process.env.NODE_ENV = 'production';
|
|
161
|
-
const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-
|
|
161
|
+
const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-3c88d175.cjs.prod.js'); });
|
|
162
162
|
await deploymentsSetCommand.default(options);
|
|
163
163
|
});
|
|
164
164
|
cli.help();
|
|
@@ -186,11 +186,11 @@ function loadDotEnvFiles(globalOptions) {
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
// https://github.com/bkeepers/dotenv#what-other-env-files-can-i-use
|
|
189
|
-
dotenvFiles.push(..._filterInstanceProperty__default["default"](_context = [
|
|
189
|
+
dotenvFiles.push(..._filterInstanceProperty__default["default"](_context = [`.env.${environment}.local`,
|
|
190
190
|
// Don't include `.env.local` for `test` environment
|
|
191
191
|
// since normally you expect tests to produce the same
|
|
192
192
|
// results for everyone
|
|
193
|
-
|
|
193
|
+
`.env.local`, `.env.${environment}`, '.env']).call(_context, Boolean));
|
|
194
194
|
|
|
195
195
|
// Load environment variables from .env* files. Suppress warnings using silent
|
|
196
196
|
// if this file is missing. dotenv will never modify any environment variables
|
|
@@ -6,7 +6,7 @@ import path from 'path';
|
|
|
6
6
|
import { cac } from 'cac';
|
|
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-9a7b7976.esm.js';
|
|
10
10
|
import { d as doesFileExist } from '../../dist/does-file-exist-32618334.esm.js';
|
|
11
11
|
import 'node:fs';
|
|
12
12
|
|
|
@@ -22,7 +22,7 @@ process.on('unhandledRejection', err => {
|
|
|
22
22
|
// Get the current directory where the CLI is executed from. Usually this is the application folder.
|
|
23
23
|
const applicationDirectory = fs.realpathSync(process.cwd());
|
|
24
24
|
async function run() {
|
|
25
|
-
cli.option('--env <path>',
|
|
25
|
+
cli.option('--env <path>', `(optional) Parses the file path as a dotenv file and adds the variables to the environment. Multiple flags are allowed.`);
|
|
26
26
|
|
|
27
27
|
// Default command
|
|
28
28
|
cli.command('').usage('\n\n Develop and build Custom Applications.').action(() => {
|
|
@@ -31,7 +31,7 @@ async function run() {
|
|
|
31
31
|
|
|
32
32
|
// Command: start
|
|
33
33
|
const usageStart = 'Starts the application in development mode using Webpack Dev Server.';
|
|
34
|
-
cli.command('start', usageStart).usage(
|
|
34
|
+
cli.command('start', usageStart).usage(`\n\n ${usageStart}`).alias('dev').action(async options => {
|
|
35
35
|
// Load dotenv files into the process environment.
|
|
36
36
|
// This is essentially what `dotenv-cli` does, but it's now built into this CLI.
|
|
37
37
|
loadDotEnvFiles(options);
|
|
@@ -44,13 +44,13 @@ async function run() {
|
|
|
44
44
|
console.log('Experimental Vite bundler enabled! 🚀');
|
|
45
45
|
console.log('');
|
|
46
46
|
}
|
|
47
|
-
const startCommand = shouldUseExperimentalBundler ? await import('../../dist/start-vite-
|
|
47
|
+
const startCommand = shouldUseExperimentalBundler ? await import('../../dist/start-vite-d68b39d3.esm.js') : await import('../../dist/start-7877df72.esm.js');
|
|
48
48
|
await startCommand.default();
|
|
49
49
|
});
|
|
50
50
|
|
|
51
51
|
// Command: build
|
|
52
52
|
const usageBuild = 'Bundles the application in production mode. Outputs a "public" folder.';
|
|
53
|
-
cli.command('build', usageBuild).usage(
|
|
53
|
+
cli.command('build', usageBuild).usage(`\n\n ${usageBuild}`).option('--build-only', '(optional) If defined, the command only creates the production bundles without compiling the "index.html".', {
|
|
54
54
|
default: false
|
|
55
55
|
}).action(async options => {
|
|
56
56
|
// Load dotenv files into the process environment.
|
|
@@ -65,12 +65,12 @@ async function run() {
|
|
|
65
65
|
console.log('Experimental Vite bundler enabled! 🚀');
|
|
66
66
|
console.log('');
|
|
67
67
|
}
|
|
68
|
-
const buildCommand = shouldUseExperimentalBundler ? await import('../../dist/build-vite-
|
|
68
|
+
const buildCommand = shouldUseExperimentalBundler ? await import('../../dist/build-vite-71767c7d.esm.js') : await import('../../dist/build-b00da074.esm.js');
|
|
69
69
|
await buildCommand.default();
|
|
70
70
|
const shouldAlsoCompile = !options.buildOnly;
|
|
71
71
|
if (shouldAlsoCompile) {
|
|
72
72
|
console.log('');
|
|
73
|
-
const compileHtmlCommand = await import('../../dist/compile-html-
|
|
73
|
+
const compileHtmlCommand = await import('../../dist/compile-html-025cd493.esm.js');
|
|
74
74
|
await compileHtmlCommand.default({
|
|
75
75
|
printSecurityHeaders: false
|
|
76
76
|
});
|
|
@@ -79,7 +79,7 @@ async function run() {
|
|
|
79
79
|
|
|
80
80
|
// Command: compile-html
|
|
81
81
|
const usageCompileHtml = 'Compiles "index.html.template" file into a "index.html" with all the required runtime configuration. The security headers are also compiled and injected into the "index.html".';
|
|
82
|
-
cli.command('compile-html', usageCompileHtml).usage(
|
|
82
|
+
cli.command('compile-html', usageCompileHtml).usage(`\n\n ${usageCompileHtml}`).option('--transformer <path>', '(optional) The path to a JS module that can be used to generate a configuration for a specific cloud provider (e.g. Vercel, Netlify).').option('--print-security-headers', '(optional) If defined, the compiled security headers are printed to stdout.', {
|
|
83
83
|
default: false
|
|
84
84
|
}).action(async options => {
|
|
85
85
|
// Load dotenv files into the process environment.
|
|
@@ -88,39 +88,39 @@ async function run() {
|
|
|
88
88
|
|
|
89
89
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
90
90
|
process.env.NODE_ENV = 'production';
|
|
91
|
-
const compileHtmlCommand = await import('../../dist/compile-html-
|
|
91
|
+
const compileHtmlCommand = await import('../../dist/compile-html-025cd493.esm.js');
|
|
92
92
|
await compileHtmlCommand.default(options);
|
|
93
93
|
});
|
|
94
94
|
|
|
95
95
|
// Command: serve
|
|
96
96
|
const usageServe = 'Serves previously built and compiled application from the "public" folder.';
|
|
97
|
-
cli.command('serve', usageServe).usage(
|
|
97
|
+
cli.command('serve', usageServe).usage(`\n\n ${usageServe}`).action(async options => {
|
|
98
98
|
// Load dotenv files into the process environment.
|
|
99
99
|
// This is essentially what `dotenv-cli` does, but it's now built into this CLI.
|
|
100
100
|
loadDotEnvFiles(options);
|
|
101
101
|
|
|
102
102
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
103
103
|
process.env.NODE_ENV = 'production';
|
|
104
|
-
const serveCommand = await import('../../dist/serve-
|
|
104
|
+
const serveCommand = await import('../../dist/serve-6a951584.esm.js');
|
|
105
105
|
await serveCommand.default();
|
|
106
106
|
});
|
|
107
107
|
|
|
108
108
|
// Command: login
|
|
109
109
|
const usageLogin = '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.';
|
|
110
|
-
cli.command('login', usageLogin).usage(
|
|
110
|
+
cli.command('login', usageLogin).usage(`\n\n ${usageLogin}`).action(async options => {
|
|
111
111
|
// Load dotenv files into the process environment.
|
|
112
112
|
// This is essentially what `dotenv-cli` does, but it's now built into this CLI.
|
|
113
113
|
loadDotEnvFiles(options);
|
|
114
114
|
|
|
115
115
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
116
116
|
process.env.NODE_ENV = 'production';
|
|
117
|
-
const loginCommand = await import('../../dist/login-
|
|
117
|
+
const loginCommand = await import('../../dist/login-7f5bb79c.esm.js');
|
|
118
118
|
await loginCommand.default();
|
|
119
119
|
});
|
|
120
120
|
|
|
121
121
|
// Command: config:sync
|
|
122
122
|
const usageConfigSync = 'Synchronizes the local Merchant Center customization config with the Merchant Center. A new Merchant Center customization will be created if none existed, otherwise it will be updated.';
|
|
123
|
-
cli.command('config:sync', usageConfigSync).usage(
|
|
123
|
+
cli.command('config:sync', usageConfigSync).usage(`\n\n ${usageConfigSync}`).option('--dry-run', '(optional) Executes the command but does not send any mutation request.', {
|
|
124
124
|
default: false
|
|
125
125
|
}).action(async options => {
|
|
126
126
|
// Load dotenv files into the process environment.
|
|
@@ -129,13 +129,13 @@ async function run() {
|
|
|
129
129
|
|
|
130
130
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
131
131
|
process.env.NODE_ENV = 'production';
|
|
132
|
-
const configSyncCommand = await import('../../dist/config-sync-
|
|
132
|
+
const configSyncCommand = await import('../../dist/config-sync-e5aa853f.esm.js');
|
|
133
133
|
await configSyncCommand.default(options);
|
|
134
134
|
});
|
|
135
135
|
|
|
136
136
|
// Command: deployment-previews:set
|
|
137
137
|
const usageDeploymentPreviewsSet = 'Creates or updates a deployment preview for the Custom Application.';
|
|
138
|
-
cli.command('deployment-previews:set', usageDeploymentPreviewsSet).usage(
|
|
138
|
+
cli.command('deployment-previews:set', usageDeploymentPreviewsSet).usage(`\n\n ${usageDeploymentPreviewsSet}`).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.', {
|
|
139
139
|
default: false
|
|
140
140
|
}).action(async options => {
|
|
141
141
|
// Load dotenv files into the process environment.
|
|
@@ -144,7 +144,7 @@ async function run() {
|
|
|
144
144
|
|
|
145
145
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
146
146
|
process.env.NODE_ENV = 'production';
|
|
147
|
-
const deploymentsSetCommand = await import('../../dist/deployment-previews-set-
|
|
147
|
+
const deploymentsSetCommand = await import('../../dist/deployment-previews-set-ca0b28cb.esm.js');
|
|
148
148
|
await deploymentsSetCommand.default(options);
|
|
149
149
|
});
|
|
150
150
|
cli.help();
|
|
@@ -172,11 +172,11 @@ function loadDotEnvFiles(globalOptions) {
|
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
// https://github.com/bkeepers/dotenv#what-other-env-files-can-i-use
|
|
175
|
-
dotenvFiles.push(..._filterInstanceProperty(_context = [
|
|
175
|
+
dotenvFiles.push(..._filterInstanceProperty(_context = [`.env.${environment}.local`,
|
|
176
176
|
// Don't include `.env.local` for `test` environment
|
|
177
177
|
// since normally you expect tests to produce the same
|
|
178
178
|
// results for everyone
|
|
179
|
-
process.env.NODE_ENV !== 'test' &&
|
|
179
|
+
process.env.NODE_ENV !== 'test' && `.env.local`, `.env.${environment}`, '.env']).call(_context, Boolean));
|
|
180
180
|
|
|
181
181
|
// Load environment variables from .env* files. Suppress warnings using silent
|
|
182
182
|
// if this file is missing. dotenv will never modify any environment variables
|
|
@@ -10,8 +10,8 @@ var formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
|
|
|
10
10
|
var printBuildError = require('react-dev-utils/printBuildError');
|
|
11
11
|
var webpack = require('webpack');
|
|
12
12
|
var assets = require('@commercetools-frontend/assets');
|
|
13
|
-
var createWebpackConfigForProduction = require('./create-webpack-config-for-production-
|
|
14
|
-
var paths = require('./paths-
|
|
13
|
+
var createWebpackConfigForProduction = require('./create-webpack-config-for-production-ce81f82b.cjs.dev.js');
|
|
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');
|
|
17
17
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
@@ -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-
|
|
43
|
+
require('./create-postcss-config-ce058cc5.cjs.dev.js');
|
|
44
44
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
45
|
-
require('./package-
|
|
45
|
+
require('./package-3a9024e1.cjs.dev.js');
|
|
46
46
|
require('./has-jsx-runtime-aa5d21ee.cjs.dev.js');
|
|
47
47
|
require('./vendors-to-transpile-6ab4ea06.cjs.dev.js');
|
|
48
48
|
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
@@ -100,7 +100,7 @@ async function run() {
|
|
|
100
100
|
if (error instanceof Error) {
|
|
101
101
|
printBuildError__default["default"](error);
|
|
102
102
|
}
|
|
103
|
-
throw new Error(
|
|
103
|
+
throw new Error(`Failed to compile`);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
// Create the production build and print the deployment instructions.
|
|
@@ -128,7 +128,7 @@ async function run() {
|
|
|
128
128
|
warnings: []
|
|
129
129
|
});
|
|
130
130
|
} else {
|
|
131
|
-
messages = formatWebpackMessages__default["default"](stats
|
|
131
|
+
messages = formatWebpackMessages__default["default"](stats?.toJson({
|
|
132
132
|
all: false,
|
|
133
133
|
warnings: true,
|
|
134
134
|
errors: true
|
|
@@ -8,8 +8,8 @@ import formatWebpackMessages from 'react-dev-utils/formatWebpackMessages';
|
|
|
8
8
|
import printBuildError from 'react-dev-utils/printBuildError';
|
|
9
9
|
import webpack from 'webpack';
|
|
10
10
|
import { packageLocation } from '@commercetools-frontend/assets';
|
|
11
|
-
import { c as createWebpackConfigForProduction } from './create-webpack-config-for-production-
|
|
12
|
-
import { p as paths } from './paths-
|
|
11
|
+
import { c as createWebpackConfigForProduction } from './create-webpack-config-for-production-e8ba7a77.esm.js';
|
|
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';
|
|
15
15
|
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
@@ -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-
|
|
41
|
+
import './create-postcss-config-e3ad83aa.esm.js';
|
|
42
42
|
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
43
|
-
import './package-
|
|
43
|
+
import './package-9a7b7976.esm.js';
|
|
44
44
|
import './has-jsx-runtime-e3ecb09b.esm.js';
|
|
45
45
|
import './vendors-to-transpile-7dc84a72.esm.js';
|
|
46
46
|
import '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
@@ -86,7 +86,7 @@ async function run() {
|
|
|
86
86
|
if (error instanceof Error) {
|
|
87
87
|
printBuildError(error);
|
|
88
88
|
}
|
|
89
|
-
throw new Error(
|
|
89
|
+
throw new Error(`Failed to compile`);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
// Create the production build and print the deployment instructions.
|
|
@@ -114,7 +114,7 @@ async function run() {
|
|
|
114
114
|
warnings: []
|
|
115
115
|
});
|
|
116
116
|
} else {
|
|
117
|
-
messages = formatWebpackMessages(stats
|
|
117
|
+
messages = formatWebpackMessages(stats?.toJson({
|
|
118
118
|
all: false,
|
|
119
119
|
warnings: true,
|
|
120
120
|
errors: true
|
|
@@ -10,8 +10,8 @@ var formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
|
|
|
10
10
|
var printBuildError = require('react-dev-utils/printBuildError');
|
|
11
11
|
var webpack = require('webpack');
|
|
12
12
|
var assets = require('@commercetools-frontend/assets');
|
|
13
|
-
var createWebpackConfigForProduction = require('./create-webpack-config-for-production-
|
|
14
|
-
var paths = require('./paths-
|
|
13
|
+
var createWebpackConfigForProduction = require('./create-webpack-config-for-production-f2aadce3.cjs.prod.js');
|
|
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');
|
|
17
17
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
@@ -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-
|
|
43
|
+
require('./create-postcss-config-4636f5c9.cjs.prod.js');
|
|
44
44
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
45
|
-
require('./package-
|
|
45
|
+
require('./package-378cc0b4.cjs.prod.js');
|
|
46
46
|
require('./has-jsx-runtime-c3202df5.cjs.prod.js');
|
|
47
47
|
require('./vendors-to-transpile-04a49d40.cjs.prod.js');
|
|
48
48
|
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
@@ -100,7 +100,7 @@ async function run() {
|
|
|
100
100
|
if (error instanceof Error) {
|
|
101
101
|
printBuildError__default["default"](error);
|
|
102
102
|
}
|
|
103
|
-
throw new Error(
|
|
103
|
+
throw new Error(`Failed to compile`);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
// Create the production build and print the deployment instructions.
|
|
@@ -128,7 +128,7 @@ async function run() {
|
|
|
128
128
|
warnings: []
|
|
129
129
|
});
|
|
130
130
|
} else {
|
|
131
|
-
messages = formatWebpackMessages__default["default"](stats
|
|
131
|
+
messages = formatWebpackMessages__default["default"](stats?.toJson({
|
|
132
132
|
all: false,
|
|
133
133
|
warnings: true,
|
|
134
134
|
errors: true
|