Skip to content

Commit 67a14a9

Browse files
author
uid10804
committed
fix(cli): update-stack: adapth path and file references
1 parent fcbbba5 commit 67a14a9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ export class UpdateStackCommand extends Command {
5959
}
6060
cli.action.stop();
6161
this.log();
62-
const templateFolder = path.normalize(this.config.root + '/template');
62+
63+
const templateFolder = path.normalize(
64+
this.config.root + '/node_modules/json-serverless-template/'
65+
);
6366
const stackFolder = process.cwd();
6467
const tasks = new Listr([
6568
{
@@ -89,8 +92,8 @@ export class UpdateStackCommand extends Command {
8992
stackFolder + '/tsconfig.json'
9093
);
9194
await fs.copy(
92-
templateFolder + '/webpack.config.prod.js',
93-
stackFolder + '/webpack.config.prod.js'
95+
templateFolder + '/webpack.config.js',
96+
stackFolder + '/webpack.config.js'
9497
);
9598
},
9699
},

0 commit comments

Comments
 (0)