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 f1ecc10 commit 6c26275
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 6c26275

Please sign in to comment.