Skip to content

Commit

Permalink
fix: use cwd to resolve npm partials for Node.JS
Browse files Browse the repository at this point in the history
  • Loading branch information
harttle committed Aug 29, 2024
1 parent 2543461 commit e5fbdfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fs/node-require.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const requireResolve = require.resolve
export const requireResolve = (partial: string) => require.resolve(partial, { paths: ['.'] })

0 comments on commit e5fbdfe

Please sign in to comment.