File tree 3 files changed +16
-12
lines changed
3 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 65
65
"xo" : " ^0.53.0"
66
66
},
67
67
"scripts" : {
68
- "build" : " rimraf \" lib/**/*.d.ts\" \" *.d.ts\" && tsc && type-coverage" ,
68
+ "crawl" : " node --conditions development script/crawl-tests.js" ,
69
+ "prepack" : " npm run build && npm run format" ,
70
+ "build" : " tsc --build --clean && tsc --build && type-coverage" ,
69
71
"format" : " remark . -qfo && prettier . -w --loglevel warn && xo --fix" ,
70
- "crawl" : " node script/crawl-tests" ,
71
72
"test-api" : " node --conditions development test/index.js" ,
72
- "test-coverage" : " c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api" ,
73
+ "test-coverage" : " c8 --check-coverage --100 --reporter lcov npm run test-api" ,
73
74
"test" : " npm run build && npm run format && npm run test-coverage"
74
75
},
75
76
"prettier" : {
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ test('markdown -> mdast', (t) => {
29
29
mdastExtensions : [ gfmFromMarkdown ( ) ]
30
30
} )
31
31
32
- const hast = toHast ( mdast , { allowDangerousHtml : true , commonmark : true } )
32
+ const hast = toHast ( mdast , { allowDangerousHtml : true } )
33
33
assert ( hast , 'expected node' )
34
34
35
35
const html = toHtml ( hast , {
@@ -38,7 +38,9 @@ test('markdown -> mdast', (t) => {
38
38
closeSelfClosing : true
39
39
} )
40
40
41
+ /** @type {string } */
41
42
let fixtureHtml
43
+ /** @type {string } */
42
44
let fixtureMarkdown
43
45
44
46
try {
Original file line number Diff line number Diff line change 1
1
{
2
- "include" : [" lib/**/*.js" , " *.js" ],
2
+ "include" : [" **/*.js" ],
3
+ "exclude" : [" coverage/" , " node_modules/" ],
3
4
"compilerOptions" : {
4
- "target" : " ES2020" ,
5
- "lib" : [" ES2020" ],
6
- "module" : " ES2020" ,
7
- "moduleResolution" : " node" ,
8
- "allowJs" : true ,
9
5
"checkJs" : true ,
10
6
"declaration" : true ,
11
7
"emitDeclarationOnly" : true ,
12
- "allowSyntheticDefaultImports" : true ,
8
+ "exactOptionalPropertyTypes" : true ,
9
+ "forceConsistentCasingInFileNames" : true ,
10
+ "lib" : [" es2020" ],
11
+ "module" : " node16" ,
12
+ "newLine" : " lf" ,
13
13
"skipLibCheck" : true ,
14
- "strict" : true
14
+ "strict" : true ,
15
+ "target" : " es2020"
15
16
}
16
17
}
You can’t perform that action at this time.
0 commit comments