diff --git a/CHANGELOG.md b/CHANGELOG.md index d82605fdce..39fa89e394 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,10 @@ Please add one entry in this file for each change in Yarn's behavior. Use the sa [#6449](https://github.com/yarnpkg/yarn/pull/6449) - [**Maël Nison**](https://twitter.com/arcanis) +- Makes the PnP hook inject a `process.versions.pnp` variable when setup (equals to `VERSIONS.std`) + + [#6464](https://github.com/yarnpkg/yarn/pull/6464) - [**Maël Nison**](https://twitter.com/arcanis) + - Fixes the display name of the faulty package when the NPM registry returns corrupted data [#6455](https://github.com/yarnpkg/yarn/pull/6455) - [**Grey Baker**](https://github.com/greysteil) diff --git a/src/util/generate-pnp-map-api.tpl.js b/src/util/generate-pnp-map-api.tpl.js index 1eeeab5cfa..d8f5152100 100644 --- a/src/util/generate-pnp-map-api.tpl.js +++ b/src/util/generate-pnp-map-api.tpl.js @@ -677,6 +677,8 @@ exports.setup = function setup() { return false; }; + + process.versions.pnp = String(exports.VERSIONS.std); }; exports.setupCompatibilityLayer = () => {