File tree Expand file tree Collapse file tree
common/execCommand/globalActions Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " @serverless-devs/core" ,
3- "version" : " 0.1.59 " ,
3+ "version" : " 0.1.60 " ,
44 "description" : " Serverless Devs Tool Core Component" ,
55 "keywords" : [
66 " Serverless" ,
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ Type: Component
22Name : core
33Provider :
44 - 阿里云
5- Version : 0.1.59
5+ Version : 0.1.60
66Description : Serverless Devs 核心组件
77HomePage : https://github.com/Serverless-Devs/core
88Tags : # 标签详情
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ class GlobalActions {
7979 async run ( type : IGlobalActionValue ) {
8080 if ( type === IGlobalAction . COMPLETE ) {
8181 await this . tracker ( ) ;
82- rimraf . sync ( this . tracePath ) ;
82+ this . tracePath && rimraf . sync ( this . tracePath ) ;
8383 }
8484 const hooks = filter ( this . actions , ( item ) => item . action === type ) ;
8585 if ( isEmpty ( hooks ) ) return ;
@@ -136,6 +136,7 @@ class GlobalActions {
136136 const yamlContent = await getYamlContent ( get ( newInputs , 'path.configPath' ) ) ;
137137 if ( isEmpty ( yamlContent ) ) return ;
138138 this . tracePath = path . join ( getRootHome ( ) , 'config' , `${ traceId } .json` ) ;
139+ if ( ! fs . existsSync ( this . tracePath ) ) return ;
139140 const data = fs . readJSONSync ( this . tracePath ) ;
140141 if ( isEmpty ( data ) ) return ;
141142
Original file line number Diff line number Diff line change 11module . exports = {
2- DEFAULT_CORE_VERSION : '0.1.59 ' ,
2+ DEFAULT_CORE_VERSION : '0.1.60 ' ,
33} ;
You can’t perform that action at this time.
0 commit comments