File tree Expand file tree Collapse file tree 2 files changed +20
-19
lines changed Expand file tree Collapse file tree 2 files changed +20
-19
lines changed Original file line number Diff line number Diff line change 100
100
"scripts" : {
101
101
"clean" : " rimraf build docs node_modules \" *.tgz\" \" *.tsbuildinfo\" " ,
102
102
"compile" : " tsc -b tsconfig.c.json" ,
103
+ "compile:types" : " tsc -p tsconfig.c.json --emitDeclarationOnly" ,
103
104
"start" : " yarn run watch" ,
104
105
"watch" : " rollup -c -w" ,
105
- "build" : " rollup -c" ,
106
+ "build" : " rollup -c && yarn run compile:types " ,
106
107
"test" : " jest --passWithNoTests" ,
107
108
"test:watch" : " jest --passWithNoTests --watch" ,
108
109
"test:coverage" : " jest --passWithNoTests --coverage" ,
Original file line number Diff line number Diff line change 1
1
import commonjs from '@rollup/plugin-commonjs' ;
2
2
import resolve from '@rollup/plugin-node-resolve' ;
3
3
import cleanup from 'rollup-plugin-cleanup' ;
4
- import dts from 'rollup-plugin-dts' ;
4
+ // import dts from 'rollup-plugin-dts';
5
5
import typescript from '@rollup/plugin-typescript' ;
6
6
import { terser } from 'rollup-plugin-terser' ;
7
7
import replace from '@rollup/plugin-replace' ;
@@ -102,22 +102,22 @@ export default (options) => {
102
102
] . filter ( Boolean ) ,
103
103
external : ( v ) => isPeerDependency ( v ) ,
104
104
} ,
105
- buildFormat ( 'types' ) && {
106
- ...base ,
107
- output : {
108
- ...commonOutput ,
109
- file : pkg . types ,
110
- format : 'es' ,
111
- } ,
112
- plugins : [
113
- dts ( {
114
- respectExternal : true ,
115
- compilerOptions : {
116
- skipLibCheck : true ,
117
- skipDefaultLibCheck : true ,
118
- } ,
119
- } ) ,
120
- ] ,
121
- } ,
105
+ // buildFormat('types') && {
106
+ // ...base,
107
+ // output: {
108
+ // ...commonOutput,
109
+ // file: pkg.types,
110
+ // format: 'es',
111
+ // },
112
+ // plugins: [
113
+ // dts({
114
+ // respectExternal: true,
115
+ // compilerOptions: {
116
+ // skipLibCheck: true,
117
+ // skipDefaultLibCheck: true,
118
+ // },
119
+ // }),
120
+ // ],
121
+ // },
122
122
] . filter ( Boolean ) ;
123
123
} ;
You can’t perform that action at this time.
0 commit comments