Skip to content

Commit a044839

Browse files
committed
Fixed issue resolving global packages on windows.
1 parent b20aeab commit a044839

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/doxdox-cli/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ const overridePackage = String(
120120
const globalNodeModulesDir = resolve(
121121
join(
122122
execSync('npm get prefix', { cwd: homedir() }).toString().trim(),
123-
'./lib/node_modules'
123+
process.platform === 'win32' ? 'node_modules' : 'lib/node_modules'
124124
)
125125
);
126126

0 commit comments

Comments
 (0)