gentle-art-70395
02/25/2023, 8:35 PMpnpm link <path-to-@pulumi/pulumi>
in my pnpm package somehow to start playing around with the pulumi codeworried-rain-74420
02/27/2023, 6:12 PMgit bisect
to determine which commit introduced the issue for PNPM. However, Pulumi doesn't officially support PNPM (more details below), so it's possible this results in a dead end.
-------------------
Historical context which you might not care about:
1. Pulumi has a bug where it only accepts package.json
files in the current directory, and can't scan upwards along the directory tree to find the package.json
files. This is a Top 20 bug by upvote. (#7360)
2. We currently have a fix, but testing has been a nightmare. Given the importance of this issue, I really want to make sure this feature is tested so we don't create a regression in the future. I'll probably pick up this issue around the first week of April.
3. NX uses a monorepo setup, so the package.json
file sits at the root of the repo, and Pulumi can't find it because of (1). (#11876, #11946)
4. This user is reporting that their Pulumi project is serializing all of the dependencies in their monorepo. It sounds to me like this is because they symlinked in the top-level package.json file -- essentially what I would expect.
5. The confounding factor to me is that Pulumi doesn't officially support PNPM at this time (#11751). Related issue: #3586.
Having recently discussed this, I maintain the long-term solution is to add support for PNPM, Yarn Berry, and Deno by encapsulating dependency installation behind an interface (as described here). But all this info might be outside of the scope of your needs.gentle-art-70395
03/03/2023, 6:09 PM