Skip to content

Commit 341cc6e

Browse files
authored
fix: only build source directory
1 parent d3928d0 commit 341cc6e

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"author": "Matteias Collet <matteias.collet@bluewin.ch>",
66
"main": "dist/index.js",
77
"scripts": {
8-
"build": "rimraf dist && rollup -c",
8+
"prebuild": "rimraf dist",
9+
"build": "rollup -c",
910
"test": "jest --verbose",
1011
"docs": "typedoc src/index.ts"
1112
},

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default {
1717
],
1818
plugins: [
1919
typescript({
20-
tsconfig: 'tsconfig.json',
20+
tsconfig: 'tsconfig.build.json',
2121
}),
2222
// compiler(),
2323
],

tsconfig.build.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"compilerOptions": {
3+
"outDir": "dist",
4+
"module": "esnext",
5+
"target": "es6",
6+
"lib": ["es6", "es2016", "es2017"],
7+
"sourceMap": true,
8+
"allowJs": false,
9+
"jsx": "react",
10+
"declaration": true,
11+
"emitDeclarationOnly": false,
12+
"moduleResolution": "node",
13+
"forceConsistentCasingInFileNames": true,
14+
"noImplicitReturns": true,
15+
"noImplicitThis": true,
16+
"noImplicitAny": true,
17+
"strictNullChecks": true,
18+
"suppressImplicitAnyIndexErrors": true,
19+
"noUnusedLocals": true,
20+
"noUnusedParameters": true,
21+
"esModuleInterop": true
22+
},
23+
"include": ["src/**/*"],
24+
}

0 commit comments

Comments
 (0)