Skip to content

Commit e322b88

Browse files
committed
Replaced sanitizePath with fileURLToPath.
1 parent bbea619 commit e322b88

File tree

1 file changed

+4
-2
lines changed
  • packages/doxdox-parser-jsdoc/src

1 file changed

+4
-2
lines changed

packages/doxdox-parser-jsdoc/src/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { promises as fs } from 'fs';
22

3+
import { fileURLToPath } from 'url';
4+
35
import { platform } from 'os';
46

57
import { dirname, join } from 'path';
@@ -8,15 +10,15 @@ import spawn from 'spawn-please';
810

911
import temp from 'temp';
1012

11-
import { findParentNodeModules, sanitizePath, slugify } from 'doxdox-core';
13+
import { findParentNodeModules, slugify } from 'doxdox-core';
1214

1315
import { File, Method } from 'doxdox-core';
1416

1517
import { Jsdoc } from './types';
1618

1719
const parser = async (cwd: string, path: string): Promise<File> => {
1820
try {
19-
const parserDir = dirname(sanitizePath(import.meta.url));
21+
const parserDir = dirname(fileURLToPath(import.meta.url));
2022

2123
const nodeModulesDir = await findParentNodeModules(parserDir);
2224

0 commit comments

Comments
 (0)