yeoman-environment 5.1.0 → 5.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -210,6 +210,15 @@ function getGlobalNpmPaths(filterPaths = true) {
210
210
  if (yarnBase) {
211
211
  paths.push(resolve(yarnBase, 'node_modules'), resolve(yarnBase, '../link/'));
212
212
  }
213
+ if (process.env.PNPM_HOME) {
214
+ const pnpmHome = process.env.PNPM_HOME;
215
+ paths.push(...globbySync('global/*/node_modules', {
216
+ cwd: pnpmHome,
217
+ onlyDirectories: true,
218
+ suppressErrors: true,
219
+ absolute: true,
220
+ }).map(modulesPath => resolve(modulesPath)));
221
+ }
213
222
  // Get npm global prefix and infer the module paths from there
214
223
  const globalInstall = execaOutput('npm', ['root', '-g']);
215
224
  if (globalInstall) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yeoman-environment",
3
- "version": "5.1.0",
3
+ "version": "5.1.2",
4
4
  "description": "Handles the lifecyle and bootstrapping of generators in a specific environment",
5
5
  "keywords": [
6
6
  "development",