(aws-lambda-nodejs): does not properly construct the (local esbuild) build command when used with pnpm #15460
Labels
@aws-cdk/aws-lambda-nodejs
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
On a Pnpm driven project this is the command that is generated for local bundling with esbuild:
The problem stems from
aws-lambda-nodejs/lib/package-manager.js
where PackageManager.PNPM hasargSeparator: '--'
. PackageManager.runBinCommand includes this argSeparator. Alas, esbuild does not like the--
particle and fails.What did you expect to happen?
I expect
cdk synth
to not fail.What actually happened?
Environment
Other
The relevant lines in handler.ts are:
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: