@ruan-cat/vercel-deploy-tool 0.5.9 → 0.6.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/package.json +2 -2
- package/src/index.ts +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ruan-cat/vercel-deploy-tool",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "阮喵喵自用的vercel部署工具,用于实现复杂项目的部署。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"rimraf": "^6.0.1",
|
|
52
52
|
"shx": "^0.3.4",
|
|
53
53
|
"vercel": "39.3.0",
|
|
54
|
-
"@ruan-cat/utils": "^1.
|
|
54
|
+
"@ruan-cat/utils": "^1.5.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/gulp": "^4.0.17",
|
package/src/index.ts
CHANGED
|
@@ -176,7 +176,13 @@ function generateExeca(execaSimpleParams: { command: string; parameters: string[
|
|
|
176
176
|
consola.info(` 当前运行的命令为: ${coloredCommand} \n`);
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
return generateSimpleAsyncTask(() =>
|
|
179
|
+
return generateSimpleAsyncTask(() => {
|
|
180
|
+
const result = spawnSync(command, parameters, { stdio: "inherit", shell: true });
|
|
181
|
+
if (result.error) {
|
|
182
|
+
throw result.error;
|
|
183
|
+
}
|
|
184
|
+
return result;
|
|
185
|
+
});
|
|
180
186
|
}
|
|
181
187
|
|
|
182
188
|
/**
|