File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/doxdox-parser-jsdoc/src Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { promises as fs } from 'fs' ;
2
2
3
+ import { fileURLToPath } from 'url' ;
4
+
3
5
import { platform } from 'os' ;
4
6
5
7
import { dirname , join } from 'path' ;
@@ -8,15 +10,15 @@ import spawn from 'spawn-please';
8
10
9
11
import temp from 'temp' ;
10
12
11
- import { findParentNodeModules , sanitizePath , slugify } from 'doxdox-core' ;
13
+ import { findParentNodeModules , slugify } from 'doxdox-core' ;
12
14
13
15
import { File , Method } from 'doxdox-core' ;
14
16
15
17
import { Jsdoc } from './types' ;
16
18
17
19
const parser = async ( cwd : string , path : string ) : Promise < File > => {
18
20
try {
19
- const parserDir = dirname ( sanitizePath ( import . meta. url ) ) ;
21
+ const parserDir = dirname ( fileURLToPath ( import . meta. url ) ) ;
20
22
21
23
const nodeModulesDir = await findParentNodeModules ( parserDir ) ;
22
24
You can’t perform that action at this time.
0 commit comments