Skip to content

Commit 0239b9b

Browse files
committed
Improve build setting
1 parent 4953714 commit 0239b9b

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
"build": "rollup -c",
1313
"test": "jest",
1414
"tsc": "tsc -p . --noEmit",
15-
"tsc:d": "tsc -p ./tsconfig-build.json --outDir lib -d --emitDeclarationOnly",
16-
"prepublishOnly": "rimraf lib && npm run build && npm run tsc:d"
15+
"prepublishOnly": "rimraf lib && npm run build"
1716
},
1817
"dependencies": {
1918
"babel-plugin-module-resolver": "4.1.0"

rollup.config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,14 @@ export default [
1818
format: "es",
1919
},
2020
],
21-
plugins: [typescript()],
21+
plugins: [
22+
typescript({
23+
tsconfig: "./tsconfig.json",
24+
outDir: ".",
25+
declaration: true,
26+
exclude: ["src/**/*.spec.*"],
27+
}),
28+
],
2229
},
2330
{
2431
input: "src/web/index.ts",

tsconfig-build.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)