@commercetools-frontend/mc-scripts 21.3.3 → 21.3.4
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/build/bin/cli.js
CHANGED
|
@@ -131,7 +131,10 @@ const applicationDirectory = fs.realpathSync(process.cwd());
|
|
|
131
131
|
|
|
132
132
|
const commandArgs = getArgsForCommand(['dry-run']);
|
|
133
133
|
proxyCommand(command, {
|
|
134
|
-
commandArgs
|
|
134
|
+
commandArgs,
|
|
135
|
+
// File names with `:` cause issues in Windows, therefore the file name is
|
|
136
|
+
// different from the command name.
|
|
137
|
+
fileName: 'config-sync'
|
|
135
138
|
});
|
|
136
139
|
break;
|
|
137
140
|
}
|
|
@@ -158,15 +161,16 @@ function getArgsForCommand(allowedFlags = []) {
|
|
|
158
161
|
}, []);
|
|
159
162
|
}
|
|
160
163
|
|
|
161
|
-
function proxyCommand(
|
|
164
|
+
function proxyCommand(commandName, {
|
|
162
165
|
commandArgs,
|
|
166
|
+
fileName,
|
|
163
167
|
noExit
|
|
164
168
|
} = {}) {
|
|
165
169
|
// Load dotenv files into the process environment.
|
|
166
170
|
// This is essentially what `dotenv-cli` does, but it's now built into this CLI.
|
|
167
171
|
loadDotEnvFiles(flags); // Spawn the actual command.
|
|
168
172
|
|
|
169
|
-
const result = spawn.sync('node', [require.resolve(`../commands/${fileName}`)].concat(commandArgs), {
|
|
173
|
+
const result = spawn.sync('node', [require.resolve(`../commands/${fileName || commandName}`)].concat(commandArgs), {
|
|
170
174
|
stdio: 'inherit'
|
|
171
175
|
}); // Handle exit signals.
|
|
172
176
|
|
|
@@ -174,13 +178,13 @@ function proxyCommand(fileName, {
|
|
|
174
178
|
switch (result.signal) {
|
|
175
179
|
case 'SIGKILL':
|
|
176
180
|
{
|
|
177
|
-
console.log(`The command ${
|
|
181
|
+
console.log(`The command ${commandName} failed because the process exited too early. This probably means the system ran out of memory or someone called "kill -9" on the process.`);
|
|
178
182
|
break;
|
|
179
183
|
}
|
|
180
184
|
|
|
181
185
|
case 'SIGTERM':
|
|
182
186
|
{
|
|
183
|
-
console.log(`The command ${
|
|
187
|
+
console.log(`The command ${commandName} failed because the process exited too early. Someone might have called "kill" or "killall", or the system could be shutting down.`);
|
|
184
188
|
break;
|
|
185
189
|
}
|
|
186
190
|
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/mc-scripts",
|
|
3
|
-
"version": "21.3.
|
|
3
|
+
"version": "21.3.4",
|
|
4
4
|
"description": "Configuration and scripts for developing a MC application",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
"build:bundles:watch": "yarn build -w"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@babel/core": "^7.17.
|
|
30
|
-
"@babel/runtime": "^7.17.
|
|
31
|
-
"@babel/runtime-corejs3": "^7.17.
|
|
32
|
-
"@commercetools-frontend/application-config": "21.3.
|
|
29
|
+
"@babel/core": "^7.17.9",
|
|
30
|
+
"@babel/runtime": "^7.17.9",
|
|
31
|
+
"@babel/runtime-corejs3": "^7.17.9",
|
|
32
|
+
"@commercetools-frontend/application-config": "21.3.4",
|
|
33
33
|
"@commercetools-frontend/assets": "21.0.0",
|
|
34
|
-
"@commercetools-frontend/babel-preset-mc-app": "21.3.
|
|
35
|
-
"@commercetools-frontend/constants": "21.3.
|
|
34
|
+
"@commercetools-frontend/babel-preset-mc-app": "21.3.4",
|
|
35
|
+
"@commercetools-frontend/constants": "21.3.4",
|
|
36
36
|
"@commercetools-frontend/mc-dev-authentication": "21.0.0",
|
|
37
|
-
"@commercetools-frontend/mc-html-template": "21.3.
|
|
37
|
+
"@commercetools-frontend/mc-html-template": "21.3.4",
|
|
38
38
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.4",
|
|
39
39
|
"@svgr/webpack": "6.2.1",
|
|
40
40
|
"autoprefixer": "^10.4.4",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"dotenv": "16.0.0",
|
|
48
48
|
"dotenv-expand": "8.0.3",
|
|
49
49
|
"fs-extra": "10.0.1",
|
|
50
|
-
"graphql-request": "^4.
|
|
50
|
+
"graphql-request": "^4.2.0",
|
|
51
51
|
"graphql-tag": "^2.12.6",
|
|
52
52
|
"html-webpack-plugin": "5.5.0",
|
|
53
53
|
"json-loader": "0.5.7",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"postcss-import": "14.1.0",
|
|
61
61
|
"postcss-loader": "6.2.1",
|
|
62
62
|
"postcss-reporter": "7.0.5",
|
|
63
|
-
"prettier": "2.6.
|
|
63
|
+
"prettier": "2.6.2",
|
|
64
64
|
"prompts": "^2.4.2",
|
|
65
65
|
"querystring-es3": "^0.2.1",
|
|
66
66
|
"rcfile": "1.0.3",
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
"terser-webpack-plugin": "5.3.1",
|
|
74
74
|
"thread-loader": "3.0.4",
|
|
75
75
|
"url": "^0.11.0",
|
|
76
|
-
"webpack": "5.
|
|
76
|
+
"webpack": "5.72.0",
|
|
77
77
|
"webpack-bundle-analyzer": "4.5.0",
|
|
78
|
-
"webpack-dev-server": "4.
|
|
78
|
+
"webpack-dev-server": "4.8.1",
|
|
79
79
|
"webpackbar": "5.0.2"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|