(aws-lambda-nodejs): Support bun
lockfiles for NodejsFunction bundling
#31753
Labels
@aws-cdk/aws-lambda-nodejs
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
Today, NodejsFunction supports lockfiles from the following ecosystems:
bun
is gaining in popularity and has its own lockfile,bun.lockb
. It would be great ifNodejsFunction
supported using this lockfile.Use Case
We've been migrating our apps to use
bun
since it's so much faster thannode
. However, when creating anew NodejsFunction
with a bun lockfile, we get this error:For now, we'll probably move over to a supported package manager, but we'd love to see native support for
bun.lockb
.Proposed Solution
Update the bundling logic to include
bun
and supportbun install
-ing.Other Information
No response
Acknowledgements
CDK version used
2.162.1
Environment details (OS name and version, etc.)
MacOS
The text was updated successfully, but these errors were encountered: