Skip to content

Commit 93e62f1

Browse files
committed
build: switch to manual types for now
1 parent 80a33c8 commit 93e62f1

File tree

2 files changed

+20
-19
lines changed

2 files changed

+20
-19
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,10 @@
100100
"scripts": {
101101
"clean": "rimraf build docs node_modules \"*.tgz\" \"*.tsbuildinfo\"",
102102
"compile": "tsc -b tsconfig.c.json",
103+
"compile:types": "tsc -p tsconfig.c.json --emitDeclarationOnly",
103104
"start": "yarn run watch",
104105
"watch": "rollup -c -w",
105-
"build": "rollup -c",
106+
"build": "rollup -c && yarn run compile:types",
106107
"test": "jest --passWithNoTests",
107108
"test:watch": "jest --passWithNoTests --watch",
108109
"test:coverage": "jest --passWithNoTests --coverage",

rollup.config.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import commonjs from '@rollup/plugin-commonjs';
22
import resolve from '@rollup/plugin-node-resolve';
33
import cleanup from 'rollup-plugin-cleanup';
4-
import dts from 'rollup-plugin-dts';
4+
// import dts from 'rollup-plugin-dts';
55
import typescript from '@rollup/plugin-typescript';
66
import { terser } from 'rollup-plugin-terser';
77
import replace from '@rollup/plugin-replace';
@@ -102,22 +102,22 @@ export default (options) => {
102102
].filter(Boolean),
103103
external: (v) => isPeerDependency(v),
104104
},
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+
// },
122122
].filter(Boolean);
123123
};

0 commit comments

Comments
 (0)