@commercetools-frontend/mc-scripts 22.28.0 → 22.29.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.
Files changed (64) hide show
  1. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.dev.js +20 -5
  2. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +20 -5
  3. package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +20 -5
  4. package/dist/{build-e34b99e8.cjs.prod.js → build-62792a03.cjs.prod.js} +4 -5
  5. package/dist/{build-5fa51b8c.esm.js → build-66dc70af.esm.js} +4 -5
  6. package/dist/{build-999eabc6.cjs.dev.js → build-e3be9274.cjs.dev.js} +4 -5
  7. package/dist/{build-vite-0ec1e9cf.cjs.dev.js → build-vite-87662f4d.cjs.dev.js} +16 -11
  8. package/dist/{build-vite-5d0fa021.esm.js → build-vite-b19a39fb.esm.js} +16 -11
  9. package/dist/{build-vite-acf05a1a.cjs.prod.js → build-vite-c7ccff49.cjs.prod.js} +16 -11
  10. package/dist/commercetools-frontend-mc-scripts.cjs.dev.js +1 -1
  11. package/dist/commercetools-frontend-mc-scripts.cjs.prod.js +1 -1
  12. package/dist/commercetools-frontend-mc-scripts.esm.js +1 -1
  13. package/dist/{config-sync-3aaa3f5d.cjs.dev.js → config-sync-3c396d96.cjs.dev.js} +21 -208
  14. package/dist/{config-sync-cabd5374.esm.js → config-sync-98db26e7.esm.js} +12 -198
  15. package/dist/{config-sync-97ba72f5.cjs.prod.js → config-sync-b4656190.cjs.prod.js} +21 -208
  16. package/dist/{create-postcss-config-069ef9c3.cjs.prod.js → create-postcss-config-12b7a8d6.cjs.prod.js} +1 -1
  17. package/dist/{create-postcss-config-5d1737f0.cjs.dev.js → create-postcss-config-f7a8f441.cjs.dev.js} +1 -1
  18. package/dist/{create-postcss-config-0323c669.esm.js → create-postcss-config-fba058e4.esm.js} +1 -1
  19. package/dist/{create-webpack-config-for-development-43c88bf6.esm.js → create-webpack-config-for-development-5b46add2.esm.js} +1 -1
  20. package/dist/{create-webpack-config-for-development-e7733a1b.cjs.prod.js → create-webpack-config-for-development-ab714b8d.cjs.prod.js} +1 -1
  21. package/dist/{create-webpack-config-for-development-4690f4cf.cjs.dev.js → create-webpack-config-for-development-fb65e8be.cjs.dev.js} +1 -1
  22. package/dist/{create-webpack-config-for-production-778d2b5e.cjs.dev.js → create-webpack-config-for-production-167f752a.cjs.dev.js} +2 -2
  23. package/dist/{create-webpack-config-for-production-28d51113.esm.js → create-webpack-config-for-production-6125de30.esm.js} +2 -2
  24. package/dist/{create-webpack-config-for-production-cbf22a83.cjs.prod.js → create-webpack-config-for-production-959fa22b.cjs.prod.js} +2 -2
  25. package/dist/{credentials-storage-f4e08e09.esm.js → credentials-storage-0b44c17e.esm.js} +1 -1
  26. package/dist/{credentials-storage-0fb8f4a6.cjs.prod.js → credentials-storage-4222b4e8.cjs.prod.js} +1 -1
  27. package/dist/{credentials-storage-8b9ddb0b.cjs.dev.js → credentials-storage-94fe55f8.cjs.dev.js} +1 -1
  28. package/dist/declarations/src/commands/deployment-previews-set.d.ts +3 -0
  29. package/dist/declarations/src/generated/settings.d.ts +45 -0
  30. package/dist/declarations/src/types.d.ts +5 -0
  31. package/dist/declarations/src/utils/graphql-requests.d.ts +41 -2
  32. package/dist/declarations/src/utils/i18n-message-complilation.d.ts +4 -0
  33. package/dist/deployment-previews-set-848a1bf9.esm.js +197 -0
  34. package/dist/deployment-previews-set-dc99dc5c.cjs.dev.js +209 -0
  35. package/dist/deployment-previews-set-ee78c1da.cjs.prod.js +209 -0
  36. package/dist/graphql-requests-734ca08d.cjs.prod.js +269 -0
  37. package/dist/graphql-requests-9f05bdac.cjs.dev.js +269 -0
  38. package/dist/graphql-requests-ffd9c148.esm.js +246 -0
  39. package/dist/i18n-message-complilation-393d344a.cjs.prod.js +23 -0
  40. package/dist/i18n-message-complilation-3f80e8d6.cjs.dev.js +23 -0
  41. package/dist/i18n-message-complilation-8aec9d1b.esm.js +15 -0
  42. package/dist/{login-bd94d195.cjs.dev.js → login-8a734416.cjs.dev.js} +2 -2
  43. package/dist/{login-90029738.esm.js → login-933238a2.esm.js} +2 -2
  44. package/dist/{login-9ee301cd.cjs.prod.js → login-db3ba9ca.cjs.prod.js} +2 -2
  45. package/dist/{package-1bf866e8.cjs.dev.js → package-2e7a3b2c.cjs.prod.js} +12 -12
  46. package/dist/{package-d977cdc9.cjs.prod.js → package-5c8e1e42.cjs.dev.js} +12 -12
  47. package/dist/{package-50be39f9.esm.js → package-61d870ab.esm.js} +12 -12
  48. package/dist/{start-a0031945.cjs.prod.js → start-27e158a1.cjs.prod.js} +3 -3
  49. package/dist/{start-4671c540.esm.js → start-2c0c7162.esm.js} +3 -3
  50. package/dist/{start-54be934f.cjs.dev.js → start-336282f7.cjs.dev.js} +3 -3
  51. package/package.json +12 -12
  52. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.dev.js +2 -2
  53. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.prod.js +2 -2
  54. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.esm.js +2 -2
  55. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.dev.js +4 -4
  56. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +4 -4
  57. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +4 -4
  58. package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.dev.js +12 -2
  59. package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.prod.js +12 -2
  60. package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.esm.js +12 -2
  61. package/dist/declarations/src/utils/get-i18n-message-format.d.ts +0 -3
  62. package/dist/get-i18n-message-format-3e59a0d7.cjs.prod.js +0 -15
  63. package/dist/get-i18n-message-format-44a20fa2.cjs.dev.js +0 -15
  64. package/dist/get-i18n-message-format-58852baf.esm.js +0 -9
@@ -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-1bf866e8.cjs.dev.js');
13
+ var _package = require('../../dist/package-5c8e1e42.cjs.dev.js');
14
14
  var doesFileExist = require('../../dist/does-file-exist-eb86baca.cjs.dev.js');
15
15
  require('node:fs');
16
16
 
@@ -58,7 +58,7 @@ 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-7d25a064.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-54be934f.cjs.dev.js'); });
61
+ const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-7d25a064.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-336282f7.cjs.dev.js'); });
62
62
  await startCommand.default();
63
63
  });
64
64
 
@@ -79,7 +79,7 @@ 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-0ec1e9cf.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-999eabc6.cjs.dev.js'); });
82
+ const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-87662f4d.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-e3be9274.cjs.dev.js'); });
83
83
  await buildCommand.default();
84
84
  const shouldAlsoCompile = !options.buildOnly;
85
85
  if (shouldAlsoCompile) {
@@ -128,7 +128,7 @@ async function run() {
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-bd94d195.cjs.dev.js'); });
131
+ const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-8a734416.cjs.dev.js'); });
132
132
  await loginCommand.default();
133
133
  });
134
134
 
@@ -143,9 +143,24 @@ 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-3aaa3f5d.cjs.dev.js'); });
146
+ const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-3c396d96.cjs.dev.js'); });
147
147
  await configSyncCommand.default(options);
148
148
  });
149
+
150
+ // Command: deployment-previews:set
151
+ const usageDeploymentPreviewsSet = 'Creates or updates a deployment preview for the Custom Application.';
152
+ cli.command('deployment-previews:set', usageDeploymentPreviewsSet).usage("\n\n ".concat(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
+ default: false
154
+ }).action(async options => {
155
+ // Load dotenv files into the process environment.
156
+ // This is essentially what `dotenv-cli` does, but it's now built into this CLI.
157
+ loadDotEnvFiles(options);
158
+
159
+ // Do this as the first thing so that any code reading it knows the right env.
160
+ process.env.NODE_ENV = 'production';
161
+ const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-dc99dc5c.cjs.dev.js'); });
162
+ await deploymentsSetCommand.default(options);
163
+ });
149
164
  cli.help();
150
165
  cli.version(_package.pkgJson.version);
151
166
  cli.parse(process.argv, {
@@ -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-d977cdc9.cjs.prod.js');
13
+ var _package = require('../../dist/package-2e7a3b2c.cjs.prod.js');
14
14
  var doesFileExist = require('../../dist/does-file-exist-be53305d.cjs.prod.js');
15
15
  require('node:fs');
16
16
 
@@ -58,7 +58,7 @@ 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-8e72a6a9.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-a0031945.cjs.prod.js'); });
61
+ const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-8e72a6a9.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-27e158a1.cjs.prod.js'); });
62
62
  await startCommand.default();
63
63
  });
64
64
 
@@ -79,7 +79,7 @@ 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-acf05a1a.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-e34b99e8.cjs.prod.js'); });
82
+ const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-c7ccff49.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-62792a03.cjs.prod.js'); });
83
83
  await buildCommand.default();
84
84
  const shouldAlsoCompile = !options.buildOnly;
85
85
  if (shouldAlsoCompile) {
@@ -128,7 +128,7 @@ async function run() {
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-9ee301cd.cjs.prod.js'); });
131
+ const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-db3ba9ca.cjs.prod.js'); });
132
132
  await loginCommand.default();
133
133
  });
134
134
 
@@ -143,9 +143,24 @@ 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-97ba72f5.cjs.prod.js'); });
146
+ const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-b4656190.cjs.prod.js'); });
147
147
  await configSyncCommand.default(options);
148
148
  });
149
+
150
+ // Command: deployment-previews:set
151
+ const usageDeploymentPreviewsSet = 'Creates or updates a deployment preview for the Custom Application.';
152
+ cli.command('deployment-previews:set', usageDeploymentPreviewsSet).usage("\n\n ".concat(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
+ default: false
154
+ }).action(async options => {
155
+ // Load dotenv files into the process environment.
156
+ // This is essentially what `dotenv-cli` does, but it's now built into this CLI.
157
+ loadDotEnvFiles(options);
158
+
159
+ // Do this as the first thing so that any code reading it knows the right env.
160
+ process.env.NODE_ENV = 'production';
161
+ const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-ee78c1da.cjs.prod.js'); });
162
+ await deploymentsSetCommand.default(options);
163
+ });
149
164
  cli.help();
150
165
  cli.version(_package.pkgJson.version);
151
166
  cli.parse(process.argv, {
@@ -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-50be39f9.esm.js';
9
+ import { p as pkgJson } from '../../dist/package-61d870ab.esm.js';
10
10
  import { d as doesFileExist } from '../../dist/does-file-exist-32618334.esm.js';
11
11
  import 'node:fs';
12
12
 
@@ -44,7 +44,7 @@ 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-e706f764.esm.js') : await import('../../dist/start-4671c540.esm.js');
47
+ const startCommand = shouldUseExperimentalBundler ? await import('../../dist/start-vite-e706f764.esm.js') : await import('../../dist/start-2c0c7162.esm.js');
48
48
  await startCommand.default();
49
49
  });
50
50
 
@@ -65,7 +65,7 @@ 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-5d0fa021.esm.js') : await import('../../dist/build-5fa51b8c.esm.js');
68
+ const buildCommand = shouldUseExperimentalBundler ? await import('../../dist/build-vite-b19a39fb.esm.js') : await import('../../dist/build-66dc70af.esm.js');
69
69
  await buildCommand.default();
70
70
  const shouldAlsoCompile = !options.buildOnly;
71
71
  if (shouldAlsoCompile) {
@@ -114,7 +114,7 @@ async function run() {
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-90029738.esm.js');
117
+ const loginCommand = await import('../../dist/login-933238a2.esm.js');
118
118
  await loginCommand.default();
119
119
  });
120
120
 
@@ -129,9 +129,24 @@ 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-cabd5374.esm.js');
132
+ const configSyncCommand = await import('../../dist/config-sync-98db26e7.esm.js');
133
133
  await configSyncCommand.default(options);
134
134
  });
135
+
136
+ // Command: deployment-previews:set
137
+ const usageDeploymentPreviewsSet = 'Creates or updates a deployment preview for the Custom Application.';
138
+ cli.command('deployment-previews:set', usageDeploymentPreviewsSet).usage("\n\n ".concat(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
+ default: false
140
+ }).action(async options => {
141
+ // Load dotenv files into the process environment.
142
+ // This is essentially what `dotenv-cli` does, but it's now built into this CLI.
143
+ loadDotEnvFiles(options);
144
+
145
+ // Do this as the first thing so that any code reading it knows the right env.
146
+ process.env.NODE_ENV = 'production';
147
+ const deploymentsSetCommand = await import('../../dist/deployment-previews-set-848a1bf9.esm.js');
148
+ await deploymentsSetCommand.default(options);
149
+ });
135
150
  cli.help();
136
151
  cli.version(pkgJson.version);
137
152
  cli.parse(process.argv, {
@@ -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-cbf22a83.cjs.prod.js');
13
+ var createWebpackConfigForProduction = require('./create-webpack-config-for-production-959fa22b.cjs.prod.js');
14
14
  var paths = require('./paths-af1a725a.cjs.prod.js');
15
15
  var doesFileExist = require('./does-file-exist-be53305d.cjs.prod.js');
16
16
  require('@babel/runtime-corejs3/core-js-stable/object/keys');
@@ -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-069ef9c3.cjs.prod.js');
43
+ require('./create-postcss-config-12b7a8d6.cjs.prod.js');
44
44
  require('@babel/runtime-corejs3/helpers/slicedToArray');
45
- require('./package-d977cdc9.cjs.prod.js');
45
+ require('./package-2e7a3b2c.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');
@@ -89,8 +89,7 @@ async function run() {
89
89
  if (result.warnings.length) {
90
90
  console.log(chalk__default["default"].yellow('Compiled with warnings.\n'));
91
91
  console.log(result.warnings.join('\n\n'));
92
- console.log("\nSearch for the ".concat(chalk__default["default"].underline(chalk__default["default"].yellow('keywords')), " to learn more about each warning."));
93
- console.log("To ignore, add ".concat(chalk__default["default"].cyan('// eslint-disable-next-line'), " to the line before.\n"));
92
+ console.log('\n');
94
93
  } else {
95
94
  console.log(chalk__default["default"].green('Compiled successfully.\n'));
96
95
  }
@@ -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-28d51113.esm.js';
11
+ import { c as createWebpackConfigForProduction } from './create-webpack-config-for-production-6125de30.esm.js';
12
12
  import { p as paths } from './paths-7bf7e88e.esm.js';
13
13
  import { d as doesFileExist } from './does-file-exist-32618334.esm.js';
14
14
  import '@babel/runtime-corejs3/core-js-stable/object/keys';
@@ -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-0323c669.esm.js';
41
+ import './create-postcss-config-fba058e4.esm.js';
42
42
  import '@babel/runtime-corejs3/helpers/slicedToArray';
43
- import './package-50be39f9.esm.js';
43
+ import './package-61d870ab.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';
@@ -75,8 +75,7 @@ async function run() {
75
75
  if (result.warnings.length) {
76
76
  console.log(chalk.yellow('Compiled with warnings.\n'));
77
77
  console.log(result.warnings.join('\n\n'));
78
- console.log("\nSearch for the ".concat(chalk.underline(chalk.yellow('keywords')), " to learn more about each warning."));
79
- console.log("To ignore, add ".concat(chalk.cyan('// eslint-disable-next-line'), " to the line before.\n"));
78
+ console.log('\n');
80
79
  } else {
81
80
  console.log(chalk.green('Compiled successfully.\n'));
82
81
  }
@@ -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-778d2b5e.cjs.dev.js');
13
+ var createWebpackConfigForProduction = require('./create-webpack-config-for-production-167f752a.cjs.dev.js');
14
14
  var paths = require('./paths-ec3e3a7d.cjs.dev.js');
15
15
  var doesFileExist = require('./does-file-exist-eb86baca.cjs.dev.js');
16
16
  require('@babel/runtime-corejs3/core-js-stable/object/keys');
@@ -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-5d1737f0.cjs.dev.js');
43
+ require('./create-postcss-config-f7a8f441.cjs.dev.js');
44
44
  require('@babel/runtime-corejs3/helpers/slicedToArray');
45
- require('./package-1bf866e8.cjs.dev.js');
45
+ require('./package-5c8e1e42.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');
@@ -89,8 +89,7 @@ async function run() {
89
89
  if (result.warnings.length) {
90
90
  console.log(chalk__default["default"].yellow('Compiled with warnings.\n'));
91
91
  console.log(result.warnings.join('\n\n'));
92
- console.log("\nSearch for the ".concat(chalk__default["default"].underline(chalk__default["default"].yellow('keywords')), " to learn more about each warning."));
93
- console.log("To ignore, add ".concat(chalk__default["default"].cyan('// eslint-disable-next-line'), " to the line before.\n"));
92
+ console.log('\n');
94
93
  } else {
95
94
  console.log(chalk__default["default"].green('Compiled successfully.\n'));
96
95
  }
@@ -12,7 +12,7 @@ var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
12
12
  var paths = require('./paths-ec3e3a7d.cjs.dev.js');
13
13
  var cliLib = require('@formatjs/cli-lib');
14
14
  var pluginutils = require('@rollup/pluginutils');
15
- var getI18nMessageFormat = require('./get-i18n-message-format-44a20fa2.cjs.dev.js');
15
+ var i18nMessageComplilation = require('./i18n-message-complilation-3f80e8d6.cjs.dev.js');
16
16
  var vitePluginSvgr = require('./vite-plugin-svgr-496f5b25.cjs.dev.js');
17
17
  require('@babel/runtime-corejs3/core-js-stable/instance/find');
18
18
  require('@babel/runtime-corejs3/core-js-stable/instance/concat');
@@ -20,6 +20,7 @@ require('fs');
20
20
  require('./does-file-exist-eb86baca.cjs.dev.js');
21
21
  require('node:fs');
22
22
  require('@babel/runtime-corejs3/core-js-stable/object/values');
23
+ require('chalk');
23
24
  require('crypto');
24
25
 
25
26
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -60,16 +61,20 @@ function vitePluginI18nMessageCompilation() {
60
61
  name: 'vite-plugin-i18n-message-compilation',
61
62
  enforce: 'pre',
62
63
  async transform(code, id) {
63
- if (process.env.ENABLE_I18N_MESSAGE_COMPILATION && filter(id)) {
64
- const format = getI18nMessageFormat.getI18nMessageFormat(code);
65
- const res = await cliLib.compile([id], {
66
- ast: true,
67
- format
68
- });
69
- return {
70
- code: res,
71
- map: null
72
- };
64
+ if (!process.env.DISABLE_I18N_MESSAGE_COMPILATION && filter(id)) {
65
+ try {
66
+ const format = i18nMessageComplilation.getI18nMessageFormat(code);
67
+ const res = await cliLib.compile([id], {
68
+ ast: true,
69
+ format
70
+ });
71
+ return {
72
+ code: res,
73
+ map: null
74
+ };
75
+ } catch (error) {
76
+ i18nMessageComplilation.handleMessageCompilationError(id, error, this.warn);
77
+ }
73
78
  }
74
79
  return null;
75
80
  }
@@ -10,7 +10,7 @@ import { generateTemplate } from '@commercetools-frontend/mc-html-template';
10
10
  import { p as paths } from './paths-7bf7e88e.esm.js';
11
11
  import { compile } from '@formatjs/cli-lib';
12
12
  import { createFilter } from '@rollup/pluginutils';
13
- import { g as getI18nMessageFormat } from './get-i18n-message-format-58852baf.esm.js';
13
+ import { g as getI18nMessageFormat, h as handleMessageCompilationError } from './i18n-message-complilation-8aec9d1b.esm.js';
14
14
  import { v as vitePluginSvgr } from './vite-plugin-svgr-13d96e7a.esm.js';
15
15
  import '@babel/runtime-corejs3/core-js-stable/instance/find';
16
16
  import '@babel/runtime-corejs3/core-js-stable/instance/concat';
@@ -18,6 +18,7 @@ import 'fs';
18
18
  import './does-file-exist-32618334.esm.js';
19
19
  import 'node:fs';
20
20
  import '@babel/runtime-corejs3/core-js-stable/object/values';
21
+ import 'chalk';
21
22
  import 'crypto';
22
23
 
23
24
  // This script/function is injected into the `index.html` and used by Vite
@@ -49,16 +50,20 @@ function vitePluginI18nMessageCompilation() {
49
50
  name: 'vite-plugin-i18n-message-compilation',
50
51
  enforce: 'pre',
51
52
  async transform(code, id) {
52
- if (process.env.ENABLE_I18N_MESSAGE_COMPILATION && filter(id)) {
53
- const format = getI18nMessageFormat(code);
54
- const res = await compile([id], {
55
- ast: true,
56
- format
57
- });
58
- return {
59
- code: res,
60
- map: null
61
- };
53
+ if (!process.env.DISABLE_I18N_MESSAGE_COMPILATION && filter(id)) {
54
+ try {
55
+ const format = getI18nMessageFormat(code);
56
+ const res = await compile([id], {
57
+ ast: true,
58
+ format
59
+ });
60
+ return {
61
+ code: res,
62
+ map: null
63
+ };
64
+ } catch (error) {
65
+ handleMessageCompilationError(id, error, this.warn);
66
+ }
62
67
  }
63
68
  return null;
64
69
  }
@@ -12,7 +12,7 @@ var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
12
12
  var paths = require('./paths-af1a725a.cjs.prod.js');
13
13
  var cliLib = require('@formatjs/cli-lib');
14
14
  var pluginutils = require('@rollup/pluginutils');
15
- var getI18nMessageFormat = require('./get-i18n-message-format-3e59a0d7.cjs.prod.js');
15
+ var i18nMessageComplilation = require('./i18n-message-complilation-393d344a.cjs.prod.js');
16
16
  var vitePluginSvgr = require('./vite-plugin-svgr-7def8ea1.cjs.prod.js');
17
17
  require('@babel/runtime-corejs3/core-js-stable/instance/find');
18
18
  require('@babel/runtime-corejs3/core-js-stable/instance/concat');
@@ -20,6 +20,7 @@ require('fs');
20
20
  require('./does-file-exist-be53305d.cjs.prod.js');
21
21
  require('node:fs');
22
22
  require('@babel/runtime-corejs3/core-js-stable/object/values');
23
+ require('chalk');
23
24
  require('crypto');
24
25
 
25
26
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -60,16 +61,20 @@ function vitePluginI18nMessageCompilation() {
60
61
  name: 'vite-plugin-i18n-message-compilation',
61
62
  enforce: 'pre',
62
63
  async transform(code, id) {
63
- if (process.env.ENABLE_I18N_MESSAGE_COMPILATION && filter(id)) {
64
- const format = getI18nMessageFormat.getI18nMessageFormat(code);
65
- const res = await cliLib.compile([id], {
66
- ast: true,
67
- format
68
- });
69
- return {
70
- code: res,
71
- map: null
72
- };
64
+ if (!process.env.DISABLE_I18N_MESSAGE_COMPILATION && filter(id)) {
65
+ try {
66
+ const format = i18nMessageComplilation.getI18nMessageFormat(code);
67
+ const res = await cliLib.compile([id], {
68
+ ast: true,
69
+ format
70
+ });
71
+ return {
72
+ code: res,
73
+ map: null
74
+ };
75
+ } catch (error) {
76
+ i18nMessageComplilation.handleMessageCompilationError(id, error, this.warn);
77
+ }
73
78
  }
74
79
  return null;
75
80
  }
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var vendorsToTranspile = require('./vendors-to-transpile-6ab4ea06.cjs.dev.js');
6
6
 
7
7
  // NOTE: This string will be replaced on build time with the package version.
8
- var version = "22.28.0";
8
+ var version = "22.29.0";
9
9
 
10
10
  // These exports are deprecated.
11
11
 
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var vendorsToTranspile = require('./vendors-to-transpile-04a49d40.cjs.prod.js');
6
6
 
7
7
  // NOTE: This string will be replaced on build time with the package version.
8
- var version = "22.28.0";
8
+ var version = "22.29.0";
9
9
 
10
10
  // These exports are deprecated.
11
11
 
@@ -1,7 +1,7 @@
1
1
  export { v as vendorsToTranspile } from './vendors-to-transpile-7dc84a72.esm.js';
2
2
 
3
3
  // NOTE: This string will be replaced on build time with the package version.
4
- var version = "22.28.0";
4
+ var version = "22.29.0";
5
5
 
6
6
  // These exports are deprecated.
7
7