File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 14
14
"static" : " run-p watch serve" ,
15
15
"typings" : " tsc -d --declarationDir typings" ,
16
16
"start" : " node script/dev.js" ,
17
+ "types" : " tsc --emitDeclarationOnly && tscpaths -p tsconfig.json -s ./src -o ./dist" ,
17
18
"build" : " export target=dist && node script/build.js" ,
18
- "prepublishOnly" : " npm run build"
19
+ "prepublishOnly" : " npm run build && npm run types "
19
20
},
20
21
"husky" : {
21
22
"hooks" : {
67
68
"ts-loader" : " ^5.3.0" ,
68
69
"ts-node" : " ^8.10.1" ,
69
70
"tsconfig-paths" : " ^3.9.0" ,
71
+ "tscpaths" : " 0.0.9" ,
70
72
"typescript" : " ^3.1.6" ,
71
73
"webpack" : " ^4.25.1" ,
72
74
"webpack-cli" : " ^3.1.2" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
3
"esModuleInterop" : true ,
4
+ "declaration" : true ,
4
5
"sourceMap" : true ,
6
+ "outDir" : " ./dist" ,
5
7
"lib" : [
6
8
" dom" ,
7
9
" dom.iterable" ,
You can’t perform that action at this time.
0 commit comments