Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
fix: use workaround for large dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Mar 6, 2021
1 parent bd0a10b commit f9ad8b5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cdk/stacks/CatTracker/lambdas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ export const prepareAssetTrackerLambdas = async ({
srcDir: rootDir,
outDir,
Bucket: sourceCodeBucketName,
installCommand: [
'npm',
'i', // do not use ci, it will install unneccessary dependencies
'--ignore-scripts',
'--only=prod',
'--no-audit',
'--legacy-peer-deps',
],
}),
lambdas: await packLayeredLambdas<CatTrackerLambdas>({
reporter,
Expand Down

0 comments on commit f9ad8b5

Please sign in to comment.