-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(aws-lambda-nodejs): pnpm esbuild localCommand fails #15164
Labels
@aws-cdk/aws-lambda-nodejs
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
Comments
@relm923 any idea? |
mergify bot
pushed a commit
that referenced
this issue
Jul 8, 2021
Fixes the local bundling command when using the pnpm package manager. The args separator is now before the command as described in https://github.com/pnpm/pnpm/blob/76136751958ceac0ee77e9a0466b96d4a093a094/packages/plugin-commands-script-runners/src/exec.ts#L73. fixes #15164 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
hollanddd
pushed a commit
to hollanddd/aws-cdk
that referenced
this issue
Aug 26, 2021
Fixes the local bundling command when using the pnpm package manager. The args separator is now before the command as described in https://github.com/pnpm/pnpm/blob/76136751958ceac0ee77e9a0466b96d4a093a094/packages/plugin-commands-script-runners/src/exec.ts#L73. fixes aws#15164 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
@aws-cdk/aws-lambda-nodejs
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
The created localCommand for pnpm is failing because of an
--
after esbuild:Returns:
> error: Invalid build flag: "--"
The command works if I run it without the "--".
Reproduction Steps
What did you expect to happen?
A successful bundling when using pnpm
What actually happened?
The esbuild command failed with
> error: Invalid build flag: "--"
Environment
Other
I had a look at https://github.com/pnpm/pnpm/blob/76136751958ceac0ee77e9a0466b96d4a093a094/packages/plugin-commands-script-runners/src/exec.ts#L73 and -- seems to be needed for backward compatibility as a first argument for exec.
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: