sku 12.4.2 → 12.4.3
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/CHANGELOG.md
CHANGED
|
@@ -2,11 +2,12 @@ const Validator = require('fastest-validator');
|
|
|
2
2
|
const browserslist = require('browserslist');
|
|
3
3
|
const { yellow, red, bold, underline, white } = require('chalk');
|
|
4
4
|
const didYouMean = require('didyoumean2').default;
|
|
5
|
-
const { emojify } = require('node-emoji');
|
|
6
5
|
|
|
7
6
|
const validator = new Validator();
|
|
8
7
|
|
|
9
|
-
const exitWithErrors = (errors) => {
|
|
8
|
+
const exitWithErrors = async (errors) => {
|
|
9
|
+
const { emojify } = await import('node-emoji');
|
|
10
|
+
|
|
10
11
|
console.log(bold(underline(red('SkuWebpackPlugin: Invalid options'))));
|
|
11
12
|
errors.forEach((error) => {
|
|
12
13
|
console.log(yellow(emojify(error)));
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
const browserslist = require('browserslist');
|
|
2
2
|
const { yellow, red, bold, underline, white } = require('chalk');
|
|
3
3
|
const didYouMean = require('didyoumean2').default;
|
|
4
|
-
const { emojify } = require('node-emoji');
|
|
5
4
|
|
|
6
5
|
const configSchema = require('./configSchema');
|
|
7
6
|
const defaultSkuConfig = require('./defaultSkuConfig');
|
|
@@ -9,7 +8,9 @@ const defaultClientEntry = require('./defaultClientEntry');
|
|
|
9
8
|
|
|
10
9
|
const availableConfigKeys = Object.keys(defaultSkuConfig);
|
|
11
10
|
|
|
12
|
-
const exitWithErrors = (errors) => {
|
|
11
|
+
const exitWithErrors = async (errors) => {
|
|
12
|
+
const { emojify } = await import('node-emoji');
|
|
13
|
+
|
|
13
14
|
console.log(bold(underline(red('Errors in sku config:'))));
|
|
14
15
|
errors.forEach((error) => {
|
|
15
16
|
console.log(yellow(emojify(error)));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sku",
|
|
3
|
-
"version": "12.4.
|
|
3
|
+
"version": "12.4.3",
|
|
4
4
|
"description": "Front-end development toolkit, powered by Webpack, Babel, CSS Modules, Less and Jest",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"react": "^18.2.0",
|
|
141
141
|
"react-dom": "^18.2.0",
|
|
142
142
|
"react-helmet": "^6.1.0",
|
|
143
|
-
"react-router-dom": "^
|
|
143
|
+
"react-router-dom": "^6.0.0"
|
|
144
144
|
},
|
|
145
145
|
"scripts": {
|
|
146
146
|
"postinstall": "node ./scripts/postinstall.js"
|