@varlet/cli 1.24.5-alpha.1640958611196 → 1.24.5-alpha.1640960313747
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/lib/commands/release.js +5 -6
- package/package.json +5 -5
package/lib/commands/release.js
CHANGED
|
@@ -129,7 +129,7 @@ function updateVersion(version) {
|
|
|
129
129
|
}
|
|
130
130
|
function release() {
|
|
131
131
|
return __awaiter(this, void 0, void 0, function () {
|
|
132
|
-
var currentVersion, name_1, ret, type, isPreRelease, expectVersion, confirm_1,
|
|
132
|
+
var currentVersion, name_1, ret, type, isPreRelease, expectVersion, confirm_1, e_1, error_1;
|
|
133
133
|
return __generator(this, function (_a) {
|
|
134
134
|
switch (_a.label) {
|
|
135
135
|
case 0:
|
|
@@ -188,15 +188,14 @@ function release() {
|
|
|
188
188
|
_a.label = 8;
|
|
189
189
|
case 8:
|
|
190
190
|
_a.trys.push([8, 10, , 11]);
|
|
191
|
-
return [4 /*yield*/, (0, execa_1.default)('git', ['restore', '
|
|
191
|
+
return [4 /*yield*/, Promise.all([(0, execa_1.default)('git', ['restore', 'package.json']), (0, execa_1.default)('git', ['restore', '**/package.json'])])
|
|
192
|
+
// eslint-disable-next-line no-empty
|
|
193
|
+
];
|
|
192
194
|
case 9:
|
|
193
|
-
|
|
194
|
-
console.log(ret_1.stderr);
|
|
195
|
-
console.log(ret_1.stdout);
|
|
195
|
+
_a.sent();
|
|
196
196
|
return [3 /*break*/, 11];
|
|
197
197
|
case 10:
|
|
198
198
|
e_1 = _a.sent();
|
|
199
|
-
console.log(e_1.toString());
|
|
200
199
|
return [3 /*break*/, 11];
|
|
201
200
|
case 11:
|
|
202
201
|
logger_1.default.success("Release version ".concat(expectVersion, " successfully!"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/cli",
|
|
3
|
-
"version": "1.24.5-alpha.
|
|
3
|
+
"version": "1.24.5-alpha.1640960313747",
|
|
4
4
|
"description": "cli of varlet",
|
|
5
5
|
"bin": {
|
|
6
6
|
"varlet-cli": "./lib/index.js"
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
},
|
|
30
30
|
"gitHead": "ee9c3866bedad96c86365b0f9888a3a6bb781b1f",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@varlet/icons": "1.24.5-alpha.
|
|
33
|
-
"@varlet/markdown-vite-plugin": "1.24.5-alpha.
|
|
34
|
-
"@varlet/touch-emulator": "1.24.5-alpha.
|
|
32
|
+
"@varlet/icons": "1.24.5-alpha.1640960313747",
|
|
33
|
+
"@varlet/markdown-vite-plugin": "1.24.5-alpha.1640960313747",
|
|
34
|
+
"@varlet/touch-emulator": "1.24.5-alpha.1640960313747",
|
|
35
35
|
"@babel/core": "^7.14.8",
|
|
36
36
|
"@babel/preset-env": "^7.14.8",
|
|
37
37
|
"@babel/preset-typescript": "^7.14.5",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@types/lodash-es": "^4.17.5"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
|
-
"@varlet/touch-emulator": "1.24.5-alpha.
|
|
76
|
+
"@varlet/touch-emulator": "1.24.5-alpha.1640960313747",
|
|
77
77
|
"@vue/test-utils": "^2.0.0-rc.6",
|
|
78
78
|
"vue": "3.2.16",
|
|
79
79
|
"vue-router": "4.0.12",
|