Skip to content

Commit 949b83e

Browse files
zxypro1neil.zxy
andauthored
publish: 0.1.66 (#124)
Co-authored-by: neil.zxy <neil.zxy@alibaba-inc.com>
1 parent 3de72ce commit 949b83e

4 files changed

Lines changed: 14 additions & 4 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@serverless-devs/core",
3-
"version": "0.1.66-beta.4",
3+
"version": "0.1.66",
44
"description": "Serverless Devs Tool Core Component",
55
"keywords": [
66
"Serverless",

publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Type: Component
22
Name: core
33
Provider:
44
- 阿里云
5-
Version: dev
5+
Version: 0.1.66
66
Description: Serverless Devs 核心组件
77
HomePage: https://github.com/Serverless-Devs/core
88
Tags: #标签详情

src/common/execCommand/component/hook.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@ class Hook {
5555
if (fs.existsSync(execPath) && fs.lstatSync(execPath).isDirectory()) {
5656
logger.debug(`cwd: ${execPath}`)
5757
logger.debug(`process.env.PATH: ${process.env.PATH}`)
58+
59+
let result;
5860
try {
59-
spawnSync(configs.value, {
61+
result = spawnSync(configs.value, {
6062
cwd: execPath,
6163
stdio: 'inherit',
6264
shell: true,
@@ -74,6 +76,14 @@ class Hook {
7476
serviceName: get(this.inputs, 'project.projectName'),
7577
});
7678
}
79+
80+
if (result.error || result.status !== 0 || result.signal !== null) {
81+
const errStr = `Command failed with exit code ${result.status}: ${configs.value}`;
82+
throwError({
83+
error: {message: errStr},
84+
serviceName: get(this.inputs, 'project.projectName'),
85+
});
86+
}
7787
}
7888
}
7989

src/daemon/constant.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
DEFAULT_CORE_VERSION: 'dev',
2+
DEFAULT_CORE_VERSION: '0.1.66',
33
};

0 commit comments

Comments
 (0)