Skip to content

Commit abbc6c2

Browse files
committed
Decode file path passed to findParentNodeModules
1 parent 1c1a077 commit abbc6c2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/doxdox-cli/src/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import { promises as fs } from 'fs';
66

77
import { dirname, join } from 'path';
88

9+
import { fileURLToPath } from 'url';
10+
911
import { globby } from 'globby';
1012

1113
import updateNotifier from 'update-notifier';
@@ -19,8 +21,7 @@ import doxdox, {
1921
getRootDirPath,
2022
loadPlugin,
2123
parseConfigFromCLI,
22-
parseIgnoreConfig,
23-
sanitizePath
24+
parseIgnoreConfig
2425
} from 'doxdox-core';
2526

2627
import { Doc, File } from 'doxdox-core';
@@ -113,7 +114,7 @@ const overridePackage = String(
113114
const cliConfig = parseConfigFromCLI(args.raw);
114115

115116
const nodeModulesDir = await findParentNodeModules(
116-
dirname(sanitizePath(import.meta.url))
117+
dirname(fileURLToPath(import.meta.url))
117118
);
118119

119120
if (!nodeModulesDir) {

0 commit comments

Comments
 (0)