Skip to content

Commit 7ed2859

Browse files
author
uid10804
committed
fix(cli): update create-stack to install dependencies (needed)
1 parent 71b0d6e commit 7ed2859

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/cli/src/commands/create-stack.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,20 @@ export class CreateStackCommand extends Command {
154154
);
155155
},
156156
},
157+
{
158+
title: 'Install Dependencies',
159+
task: async (task) => {
160+
task.output = 'INSTALL DEPENDENCIES';
161+
Helpers.removeDir(stackFolder + '/node_modules');
162+
await Helpers.executeChildProcess(
163+
'npm i',
164+
{
165+
cwd: stackFolder,
166+
},
167+
false
168+
);
169+
},
170+
},
157171
{
158172
title: 'Deploy Stack on AWS',
159173
task: async () => {

0 commit comments

Comments
 (0)