File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
packages/cli/src/commands Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -58,13 +58,13 @@ export class UpdateStackCommand extends Command {
5858 const tasks = new Listr ( [
5959 {
6060 title : 'Validate JSON Serverless Directory' ,
61- task : task => {
61+ task : ( task ) => {
6262 Helpers . isJSONServerlessDirectory ( stackFolder ) ;
6363 } ,
6464 } ,
6565 {
6666 title : 'Copy Template Files' ,
67- task : async task => {
67+ task : async ( task ) => {
6868 await fs . copy ( templateFolder + '/src' , stackFolder + '/src' ) ;
6969 await fs . copy (
7070 templateFolder + '/package.json' ,
@@ -105,8 +105,10 @@ export class UpdateStackCommand extends Command {
105105 } ,
106106 } ,
107107 {
108- title : 'Install Dependencies' ,
109- task : async ( ) => {
108+ title : 'Update Dependencies' ,
109+ task : async ( task ) => {
110+ task . output = 'INSTALL DEPENDENCIES' ;
111+ Helpers . removeDir ( stackFolder + '/node_modules' ) ;
110112 await Helpers . executeChildProcess (
111113 'npm i' ,
112114 {
You can’t perform that action at this time.
0 commit comments