File tree 13 files changed +32
-31
lines changed
13 files changed +32
-31
lines changed Original file line number Diff line number Diff line change 11
11
},
12
12
"type" : " module" ,
13
13
"workspaces" : [
14
- " packages/remark-parse" ,
15
- " packages/remark-stringify" ,
16
- " packages/remark" ,
17
- " packages/remark-cli"
14
+ " packages/remark-parse/ " ,
15
+ " packages/remark-stringify/ " ,
16
+ " packages/remark/ " ,
17
+ " packages/remark-cli/ "
18
18
],
19
19
"devDependencies" : {
20
20
"@types/mdast" : " ^3.0.0" ,
36
36
"xo" : " ^0.54.0"
37
37
},
38
38
"scripts" : {
39
- "build" : " npm run build --workspaces && rimraf \" *.d.ts\" \" {test,script}/**/*.d.ts\" && tsc && type-coverage" ,
39
+ "prepack" : " npm run build && npm run format" ,
40
+ "build" : " tsc --build --clean && tsc --build && type-coverage" ,
40
41
"format" : " ./packages/remark-cli/cli.js . -qfo && prettier . -w --loglevel warn && xo --fix" ,
41
42
"test-api" : " npm run test --workspaces && node --conditions development test/index.js" ,
42
43
"test-coverage" : " c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api" ,
Original file line number Diff line number Diff line change 35
35
"unified-args" : " ^10.0.0"
36
36
},
37
37
"scripts" : {
38
- "build" : " rimraf \" *.d.ts\" && tsc && type-coverage" ,
39
38
"test" : " node --conditions development test.js"
40
39
},
41
40
"xo" : false ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"extends" : " ../../tsconfig.json" ,
3
- "include" : [" *.js" ],
4
- "compilerOptions" : {
5
- "resolveJsonModule" : true
6
- }
3
+ "references" : [{"path" : " ../remark/" }]
7
4
}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import type {Root} from 'mdast'
3
3
import type { Plugin } from 'unified'
4
4
import type { Options } from './lib/index.js'
5
5
6
- declare const remarkParse : Plugin < [ Options ? ] | void [ ] , string , Root >
6
+ declare const remarkParse : Plugin < [ ( Options | undefined ) ? ] , string , Root >
7
7
export default remarkParse
8
8
9
9
export type { Options } from './lib/index.js'
Original file line number Diff line number Diff line change 46
46
"unified" : " ^10.0.0"
47
47
},
48
48
"scripts" : {
49
- "test" : " node --conditions development test.js" ,
50
- "build" : " rimraf \" test.d.ts\" \" lib/**/*.d.ts\" && tsc && type-coverage"
49
+ "test" : " node --conditions development test.js"
51
50
},
52
51
"xo" : false ,
53
52
"typeCoverage" : {
Original file line number Diff line number Diff line change 1
1
{
2
- "extends" : " ../../tsconfig.json" ,
3
- "include" : [" lib/**/*.js" , " test.js" ]
2
+ "extends" : " ../../tsconfig.json"
4
3
}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import type {Root} from 'mdast'
3
3
import type { Plugin } from 'unified'
4
4
import type { Options } from './lib/index.js'
5
5
6
- declare const remarkStringify : Plugin < [ Options ? ] | void [ ] , Root , string >
6
+ declare const remarkStringify : Plugin < [ ( Options | undefined ) ? ] , Root , string >
7
7
export default remarkStringify
8
8
9
9
export type { Options } from './lib/index.js'
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import {toMarkdown} from 'mdast-util-to-markdown'
8
8
9
9
/**
10
10
* @this {import('unified').Processor}
11
- * @type {import('unified').Plugin<[Options]|void[], Node, string> }
11
+ * @type {import('unified').Plugin<[Options? ]|void[], Node, string> }
12
12
*/
13
13
export default function remarkStringify ( options ) {
14
14
/** @type {import('unified').CompilerFunction<Node, string> } */
Original file line number Diff line number Diff line change 46
46
"unified" : " ^10.0.0"
47
47
},
48
48
"scripts" : {
49
- "test" : " node --conditions development test.js" ,
50
- "build" : " rimraf \" test.d.ts\" \" lib/**/*.d.ts\" && tsc && type-coverage"
49
+ "test" : " node --conditions development test.js"
51
50
},
52
51
"xo" : false ,
53
52
"typeCoverage" : {
Original file line number Diff line number Diff line change 1
1
{
2
- "extends" : " ../../tsconfig.json" ,
3
- "include" : [" lib/**/*.js" , " test.js" ]
2
+ "extends" : " ../../tsconfig.json"
4
3
}
Original file line number Diff line number Diff line change 44
44
"unified" : " ^10.0.0"
45
45
},
46
46
"scripts" : {
47
- "test" : " node --conditions development test.js" ,
48
- "build" : " rimraf \" *.d.ts\" && tsc && type-coverage"
47
+ "test" : " node --conditions development test.js"
49
48
},
50
49
"xo" : false ,
51
50
"typeCoverage" : {
Original file line number Diff line number Diff line change 1
1
{
2
2
"extends" : " ../../tsconfig.json" ,
3
- "include " : [" *.js " ]
3
+ "references " : [{ "path" : " ../remark-parse/ " }, { "path" : " ../remark-stringify/ " } ]
4
4
}
Original file line number Diff line number Diff line change 1
1
{
2
- "include" : [" script/**/*.js" , " test/**/*.js" ],
3
2
"compilerOptions" : {
4
- "target" : " es2021" ,
5
- "lib" : [" es2021" ],
6
- "module" : " node16" ,
3
+ "customConditions" : [" development" ],
7
4
"checkJs" : true ,
8
5
"declaration" : true ,
9
6
"emitDeclarationOnly" : true ,
10
- "skipLibCheck" : true ,
11
- "strict" : true
12
- }
7
+ "exactOptionalPropertyTypes" : true ,
8
+ "forceConsistentCasingInFileNames" : true ,
9
+ "lib" : [" es2020" ],
10
+ "module" : " node16" ,
11
+ "newLine" : " lf" ,
12
+ "resolveJsonModule" : true ,
13
+ "strict" : true ,
14
+ "target" : " es2020"
15
+ },
16
+ "exclude" : [" **/coverage/" , " **/node_modules/" ],
17
+ "include" : [
18
+ " **/*.js" ,
19
+ " packages/remark-parse/index.d.ts" ,
20
+ " packages/remark-stringify/index.d.ts"
21
+ ]
13
22
}
You can’t perform that action at this time.
0 commit comments