Skip to content

Commit

Permalink
🐛 Adds force deletion to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
daschaa committed May 16, 2023
1 parent 5ccc569 commit 0c43a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-lambda-nodejs/lib/bundling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export class Bundling implements cdk.BundlingOptions {
osCommand.copy(lockFilePath, pathJoin(options.outputDir, this.packageManager.lockFile)),
osCommand.changeDirectory(options.outputDir),
this.packageManager.installCommand.join(' '),
isPnpm ? osCommand.remove(pathJoin(options.outputDir, 'node_modules', '.modules.yaml')) : '', // Remove '.modules.yaml' file which changes on each deployment
isPnpm ? osCommand.remove(pathJoin(options.outputDir, 'node_modules', '.modules.yaml')) + ' -f' : '', // Remove '.modules.yaml' file which changes on each deployment
]);
}

Expand Down

0 comments on commit 0c43a56

Please sign in to comment.