Skip to content
This repository was archived by the owner on Nov 13, 2021. It is now read-only.

Commit 64dc67f

Browse files
committed
fix(errors): exit on rollup error
1 parent ca6b1c4 commit 64dc67f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/NodejsFunction.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ export class NodejsFunction extends lambda.Function {
127127
if (rollup.status !== 0) {
128128
console.error("Rollup had an error bundling.");
129129
console.error(rollup.output.map(out => out?.toString()));
130+
process.exit(1);
130131
}
131132

132133
const entryWithoutExtension = path.join(

0 commit comments

Comments
 (0)