Improved pnpm support for Node.js projects
If you manage your Node.js Pulumi projects with pnpm, our latest releases make the experience a lot smoother:
- Pulumi now supports pnpm 11, including its stricter handling of post-install scripts, so
pulumi newworks out of the box with the latest pnpm (#23815) - Serialized functions no longer embed pnpm’s versioned store paths in
requirecalls, so upgrading a dependency no longer produces spurious diffs in serialized code, or errors when a dynamic provider loads its dependencies duringpulumi refreshorpulumi destroy(#23767) - Magic functions, callbacks written inline in your program and deployed as cloud functions, like an
aws.lambda.CallbackFunction, now work in pnpm projects. Symlinked workspace andfile:dependencies are fixed the same way (#23866)
After you upgrade to an SDK with these fixes, expect a one-time diff on previously serialized functions as their require paths switch to the new version-independent form.
For more on how Pulumi serializes functions in Node.js, see the function serialization docs.