Skip to content

Commit 11e097a

Browse files
authored
Merge pull request #221 from docsbydoxdox/hotfix/global-node-module-path-windows
[hotfix] Fixed issue resolving global packages on windows.
2 parents ea8f7b4 + a044839 commit 11e097a

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)