Skip to content

Commit 026a8e2

Browse files
committed
Added support for pnpm
1 parent d82eb2c commit 026a8e2

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
@@ -19,6 +19,10 @@ function getNodeModuleName(filename) {
1919

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

0 commit comments

Comments
 (0)