arui-scripts 13.0.0 → 13.1.0-yarn2.1
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
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [13.1.0-yarn2.1](https://git.moscow.alfaintra.net/ef/arui-scripts/compare/v13.0.0...v13.1.0-yarn2.1) (2022-07-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **commands:** add yarn 2 support ([7773e38](https://git.moscow.alfaintra.net/ef/arui-scripts/commit/7773e38864652805e6e3bc672b36a04298915123))
|
|
7
|
+
|
|
1
8
|
# [13.0.0](https://git.moscow.alfaintra.net/ef/arui-scripts/compare/v12.5.0...v13.0.0) (2022-07-11)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -51,7 +51,14 @@ const packageJsonPath = path_1.default.join(app_configs_1.default.cwd, packageJs
|
|
|
51
51
|
console.time('Remove build dependencies time');
|
|
52
52
|
// if yarn is available prune dev dependencies with yarn, otherwise use npm
|
|
53
53
|
if (app_configs_1.default.useYarn && shelljs_1.default.which('yarn')) {
|
|
54
|
-
|
|
54
|
+
try {
|
|
55
|
+
// if yarn 1 is used
|
|
56
|
+
yield exec_1.default('yarn install --production --ignore-optional --frozen-lockfile --ignore-scripts --prefer-offline');
|
|
57
|
+
}
|
|
58
|
+
catch (_a) {
|
|
59
|
+
// if yarn 2 is used
|
|
60
|
+
yield exec_1.default('yarn workspaces focus --production --all');
|
|
61
|
+
}
|
|
55
62
|
}
|
|
56
63
|
else {
|
|
57
64
|
yield exec_1.default('npm prune --production');
|
|
@@ -74,7 +74,14 @@ const imageFullName = `${dockerRegistry ? `${dockerRegistry}/` : ''}${imageName}
|
|
|
74
74
|
console.time('Remove dev dependencies time');
|
|
75
75
|
// if yarn is available prune dev dependencies with yarn, otherwise use npm
|
|
76
76
|
if (app_configs_1.default.useYarn && shelljs_1.default.which('yarn')) {
|
|
77
|
-
|
|
77
|
+
try {
|
|
78
|
+
// if yarn 1 is used
|
|
79
|
+
yield exec_1.default('yarn install --production --ignore-optional --frozen-lockfile --ignore-scripts --prefer-offline');
|
|
80
|
+
}
|
|
81
|
+
catch (_a) {
|
|
82
|
+
// if yarn 2 is used
|
|
83
|
+
yield exec_1.default('yarn workspaces focus --production --all');
|
|
84
|
+
}
|
|
78
85
|
}
|
|
79
86
|
else {
|
|
80
87
|
yield exec_1.default('npm prune --production');
|
|
@@ -797,7 +797,7 @@
|
|
|
797
797
|
"affectsGlobalScope": false
|
|
798
798
|
},
|
|
799
799
|
"../src/commands/archive-build/index.ts": {
|
|
800
|
-
"version": "
|
|
800
|
+
"version": "53a1f66f56ea6840f036c80d206529fcb0cc7bb66c102f703a58aacf4849e1fd",
|
|
801
801
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
802
802
|
"affectsGlobalScope": false
|
|
803
803
|
},
|
|
@@ -1247,7 +1247,7 @@
|
|
|
1247
1247
|
"affectsGlobalScope": false
|
|
1248
1248
|
},
|
|
1249
1249
|
"../src/commands/docker-build/index.ts": {
|
|
1250
|
-
"version": "
|
|
1250
|
+
"version": "2c2ea99c9582ac64c16597b1ea91d5a4a14d767a52c55a23737b1b55ccf4dd67",
|
|
1251
1251
|
"signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
1252
1252
|
"affectsGlobalScope": false
|
|
1253
1253
|
},
|