File tree 4 files changed +37
-1
lines changed
4 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 1
1
.DS_Store
2
+ * .d.ts
2
3
* .log
3
4
coverage /
4
5
node_modules /
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ async function main() {
27
27
// eslint-disable-next-line no-await-in-loop
28
28
const input = ( await import ( './' + fp ) ) . cuss
29
29
const keys = Object . keys ( input ) . sort ( )
30
+ /** @type {Record<string, number> } */
30
31
const output = { }
31
32
let offset = - 1
32
33
Original file line number Diff line number Diff line change 25
25
"main" : " index.js" ,
26
26
"files" : [
27
27
" index.js" ,
28
+ " index.d.ts" ,
28
29
" ar-latn.js" ,
30
+ " ar-latn.d.ts" ,
29
31
" es.js" ,
32
+ " es.d.ts" ,
30
33
" fr.js" ,
34
+ " fr.d.ts" ,
31
35
" it.js" ,
36
+ " it.d.ts" ,
32
37
" pt-br.js" ,
33
- " pt-pt.js"
38
+ " pt-br.d.ts" ,
39
+ " pt-pt.js" ,
40
+ " pt-pt.d.ts"
34
41
],
35
42
"exports" : {
36
43
"." : " ./index.js" ,
48
55
"./pt-pt.js" : " ./pt-pt.js"
49
56
},
50
57
"devDependencies" : {
58
+ "@types/tape" : " ^4.0.0" ,
51
59
"c8" : " ^7.0.0" ,
52
60
"prettier" : " ^2.0.0" ,
53
61
"remark-cli" : " ^9.0.0" ,
54
62
"remark-preset-wooorm" : " ^8.0.0" ,
63
+ "rimraf" : " ^3.0.0" ,
55
64
"tape" : " ^5.0.0" ,
65
+ "type-coverage" : " ^2.0.0" ,
66
+ "typescript" : " ^4.0.0" ,
56
67
"xo" : " ^0.39.0"
57
68
},
58
69
"scripts" : {
70
+ "prepack" : " npm run build && npm run format" ,
71
+ "build" : " rimraf \" *.d.ts\" && tsc && type-coverage" ,
59
72
"generate" : " node build" ,
60
73
"format" : " remark . -qfo && prettier . -w --loglevel warn && xo --fix" ,
61
74
"test-api" : " node test.js" ,
77
90
"plugins" : [
78
91
" preset-wooorm"
79
92
]
93
+ },
94
+ "typeCoverage" : {
95
+ "atLeast" : 100 ,
96
+ "detail" : true ,
97
+ "strict" : true
80
98
}
81
99
}
Original file line number Diff line number Diff line change
1
+ {
2
+ "include" : [" *.js" ],
3
+ "compilerOptions" : {
4
+ "target" : " ES2020" ,
5
+ "lib" : [" ES2020" ],
6
+ "module" : " ES2020" ,
7
+ "moduleResolution" : " node" ,
8
+ "allowJs" : true ,
9
+ "checkJs" : true ,
10
+ "declaration" : true ,
11
+ "emitDeclarationOnly" : true ,
12
+ "allowSyntheticDefaultImports" : true ,
13
+ "skipLibCheck" : true ,
14
+ "strict" : true
15
+ }
16
+ }
You can’t perform that action at this time.
0 commit comments