-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
pnpm support #422
Comments
Hi @austin43 , thanks for the feature request. Integrating However, for the integration into the plugin I see it quite straight forward and easy. The only thing would be to find out how dependency trees are emitted by pnpm using the list or ls command. The plugin relies on these to make bundling of 1st or 2nd level dependencies work correctly. |
serverless-heaven#422 -add support for pnpm packager TODO -fix failing tests -add references to readme -determine if 2nd level packages are included properly
@HyperBrain |
@austin43 Thanks for the integration experiment. Overall, the integration looks ok (it is quite similar to the npm one - what's expected). The most important thing is, the Did you try it already? |
@HyperBrain It appears to be an npm tree. The docs for pnpm-list back this up: I tried it and it looks very similar. I have also gotten the plugin to work without any additional parsing on my part. I'll keep at it, and submit a PR once I'm confident it's doing what I think it is. |
@austin43 Sounds good. If the tree is the same, it should work without having a special handling. |
@austin43 any luck with the pnpm implementation? |
@mledom sorry I've left this for so long, I got tied up with other projects and am no longer using serverless. Per @HyperBrain's comment it uses the same tree structure so it should be relatively straight forward if you want to take a stab at it. |
It's been over a year since the last post; any progress on this? |
None at the moment |
@j0k3r , I'm using this package through serverless-bundle and I was able to run it with
This is just a patch, hopefully, you will support it soon. |
i've been playing around with pnpm + serverless webpack and have basic deployments working in a forked repo. However, I have opened the following issue in the pnpm github because external packaging is not working as expected: I'm not sure if this is a bug or a feature request with pnpm. I could consider a PR to add support for cases which don't require externals but most of our services require them. |
Just for anyone who stumbles on this issue and needs a workaround. pnpm now offers a node-linker configuration to solve for this use case in bundling for a serverless environment, or any tooling that doesn't work well with symlinks .npmrc node-linker=hoisted https://pnpm.io/npmrc#node-linker If you're working in a workspace/monorepo, you'll most likely need to use this setting as well (will likely cause slower install/bootstrapping speeds)
|
Does someone updated for this issue? |
It's been a year and a half since my last post here ... very disappointing that it's still not supported. |
This one takes some dedicated hours, I believe none of the current maintainers have the bandwidth yet. PRs |
In my case we manage packages before serverless
|
So now when i deploy my app 'express' is not bundles and i can not include it using 'includeModules' because of #1023 How should i handle this case correctly? |
yeah, its actually issue with pnpm. I disable installation using 'noInstall' but now i cannot bundle needed deps using 'includeModules' as when 'includeModules' is true - i getting 'npm ls -prod -json -depth=1 failed with code 1' again... Is its possible to use this plugin to build and deploy app with dependencies, but manage dependencies by myself? Is there any progress with pnpm support? I love this plugin, but i love pnpm also) Thanks! |
That's the expected behavior, when it's not yarn then it'll use npm by default.
It's possible to do it, but we don't have enough free time for issues at this scale. It takes time to develop and maintain it in the long run. We love this plugin too. The If you think we deserves a coffee or two, please chime in when we enable sponsorship! |
Got it, i hope you getting resources soon!) |
Long time no see! workaround is - custom node_modules layer
|
Still no news on this? |
Any updates here....5 years later |
@enchorb No workaround, migration to Webpack 5 suggested. |
So needed in 2023... |
nudge :) |
I've come to the realization that it's better just to use the esbuild plugin. Out of the box TypeScript support and increased speed. |
This is a Feature Proposal
Description
Currently npm and yarn are supported, but pnpm is not.
For feature proposals:
What is the use case that should be solved. The more detail you describe this in the easier it is to understand for us.
If there is additional config how would it look
Similar or dependent issue(s):
Additional Data
The text was updated successfully, but these errors were encountered: