Skip to content

Commit 819aa45

Browse files
committed
Refactor path resolution in loadDiffModule to use a relative path for improved compatibility with different environments.
1 parent 0d979b4 commit 819aa45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diff.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const { npm, yarn } = globalDirectory;
1313
export { enumZipEntries, readEntry };
1414

1515
const loadDiffModule = (pkgName: string): Diff | undefined => {
16-
const resolvePaths = [process.cwd(), npm.packages, yarn.packages];
16+
const resolvePaths = ['.', npm.packages, yarn.packages];
1717

1818
try {
1919
const resolved = require.resolve(pkgName, { paths: resolvePaths });

0 commit comments

Comments
 (0)