Skip to content

Commit fcfed0c

Browse files
authored
Merge pull request #3 from RoryCombe/master
Added support for pnpm
2 parents 72f3368 + 026a8e2 commit fcfed0c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ function getNodeModuleName(filename) {
2020

2121
let s = filename.split(path.sep);
2222
for(let entry of s) {
23+
if(entry === '.pnpm') {
24+
foundNodeModules = false;
25+
}
26+
2327
if(foundNodeModules) {
2428
moduleName.push(entry);
2529
if(!entry.startsWith("@")) {

0 commit comments

Comments
 (0)