Skip to main content
Pulumi logo Pulumi logo
Releases

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 new works out of the box with the latest pnpm (#23815)
  • Serialized functions no longer embed pnpm’s versioned store paths in require calls, so upgrading a dependency no longer produces spurious diffs in serialized code, or errors when a dynamic provider loads its dependencies during pulumi refresh or pulumi 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 and file: 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.

Julien Poissonnier

The infrastructure as code platform for any cloud.