We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb9551e commit bef160cCopy full SHA for bef160c
index.js
@@ -203,7 +203,7 @@ function getDirectory(localConfig) {
203
const packageSubPathPath = nodeModuleParts.pop().split(path.sep).filter(Boolean);
204
const packageName = packageSubPathPath[0].startsWith('@') ? `${packageSubPathPath[0]}${path.sep}${packageSubPathPath[1]}` : packageSubPathPath[0];
205
206
- return path.join(...nodeModuleParts, 'node_modules', packageName);
+ return path.normalize([...nodeModuleParts, `${path.sep}${packageName}`].join('node_modules'));
207
} catch {
208
debug(`Could not determine the root directory of package file ${filename}. Using default`);
209
return null;
0 commit comments