yeoman-environment 5.1.0 → 5.1.1
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.
- package/dist/module-lookup.js +3 -0
- package/package.json +1 -1
package/dist/module-lookup.js
CHANGED
|
@@ -210,6 +210,9 @@ 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
|
+
paths.push(resolve(process.env.PNPM_HOME, 'global/*/node_modules'));
|
|
215
|
+
}
|
|
213
216
|
// Get npm global prefix and infer the module paths from there
|
|
214
217
|
const globalInstall = execaOutput('npm', ['root', '-g']);
|
|
215
218
|
if (globalInstall) {
|