Skip to content

Commit e14ce27

Browse files
committed
fix: split NODE_PATH by :
1 parent 5288b0b commit e14ce27

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/nuxi/src/utils/paths.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ export function relativeToProcess(path: string) {
88
}
99

1010
exportfunctionwithNodePath(path: string){
11-
return[path,process.env.NODE_PATH].filter((i): i is NonNullable<typeofi>=>!!i)
11+
return[path,...(process.env.NODE_PATH?.split(':')||[])]
1212
}

0 commit comments

Comments
 (0)