Skip to content

Commit 1624953

Browse files
committed
chore: Remove --silent flag from layer build script and create dir prior
CI for the 10.0.0-alpha.0 release is failing at the build step but it's unclear why. This hopefully reveals more info.
1 parent 5eb036f commit 1624953

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/aws-serverless/scripts/buildLambdaLayer.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ function run(cmd: string, options?: childProcess.ExecSyncOptions): string {
2222
async function buildLambdaLayer(): Promise<void> {
2323
console.log('Building Lambda layer.');
2424
console.log('Installing local @sentry/aws-serverless into build/aws/dist-serverless/nodejs.');
25-
run('npm install . --prefix ./build/aws/dist-serverless/nodejs --install-links --silent');
25+
26+
console.log('Creating target directory for npm install.');
27+
fsForceMkdirSync('./build/aws/dist-serverless/nodejs');
28+
29+
run('npm install . --prefix ./build/aws/dist-serverless/nodejs --install-links');
2630

2731
await pruneNodeModules();
2832
fs.rmSync('./build/aws/dist-serverless/nodejs/package.json', { force: true });

0 commit comments

Comments
 (0)