File tree 3 files changed +8
-7
lines changed
3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 4
4
"license" : " MIT" ,
5
5
"description" : " Command line tool generates markdown as html." ,
6
6
"homepage" : " https://jaywcjlove.github.io/markdown-to-html-cli/" ,
7
- "type " : " module " ,
7
+ "main " : " ./lib/index.js " ,
8
8
"types" : " ./lib/index.d.ts" ,
9
- "exports" : " ./lib/index.js" ,
10
9
"bin" : {
11
10
"markdown-to-html" : " lib/cli.js" ,
12
11
"markdown-to-html-cli" : " lib/cli.js"
13
12
},
14
13
"scripts" : {
15
14
"start" : " node lib/cli.js --github-corners-fork --github-corners 'https://jaywcjlove.github.io'" ,
16
- "watch" : " tsbb watch --disable-babel -f src/cli.ts" ,
17
- "build" : " tsbb build --disable-babel -f src/cli.ts && npm run fix" ,
15
+ "watch" : " tsbb watch --no-esm -f src/cli.ts" ,
16
+ "build" : " tsbb build --no-esm -f src/cli.ts && npm run fix" ,
18
17
"fix" : " tsc-esm-fix --target='lib' --ext='.js'" ,
19
18
"test" : " npm run build && tsbb test" ,
20
19
"coverage" : " npm run build && tsbb test --coverage"
73
72
"unified" : " 10.1.1"
74
73
},
75
74
"devDependencies" : {
76
- "tsbb" : " 3.5.1 "
75
+ "tsbb" : " 3.5.2 "
77
76
}
78
77
}
Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ import { octiconLink } from './nodes/octiconLink';
27
27
import { MDToHTMLOptions } from './' ;
28
28
29
29
// https://stackoverflow.com/questions/46745014/alternative-for-dirname-in-node-when-using-the-experimental-modules-flag
30
- export const _dirname = dirname ( fileURLToPath ( import . meta. url ) ) ;
30
+ // export const _dirname = dirname(fileURLToPath(import.meta.url));
31
+ export const _dirname = __dirname ;
31
32
export interface CreateOptions extends MDToHTMLOptions { }
32
33
33
34
export function create ( options = { } as MDToHTMLOptions ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
- "module" : " ES2020" ,
3
+ "module" : " ESNext" ,
4
+ "allowJs" : true ,
4
5
// "module": "es2015",
5
6
"target" : " ESNext" ,
6
7
"esModuleInterop" : true ,
You can’t perform that action at this time.
0 commit comments