Skip to content

Commit 87035ff

Browse files
committed
build: update config
1 parent 0e93f6f commit 87035ff

4 files changed

Lines changed: 17 additions & 9 deletions

File tree

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default [
3333
}),
3434
commonjs(),
3535
typescript({
36-
tsconfig: './tsconfig.json',
36+
tsconfig: './tsconfig.build.json',
3737
}),
3838
postcss({
3939
modules: {

tsconfig.build.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"declaration": true,
5+
"declarationDir": "./dist",
6+
"outDir": "./dist",
7+
"sourceMap": true
8+
},
9+
"include": ["src"],
10+
"exclude": ["tests", "**/*.test.ts", "**/*.spec.ts"]
11+
}

tsconfig.dev.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"include": ["src", "tests"]
4+
}

tsconfig.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,14 @@
22
"compilerOptions": {
33
"target": "ES2020",
44
"module": "ESNext",
5-
"declaration": true,
6-
"declarationDir": "./dist",
7-
"outDir": "./dist",
85
"moduleResolution": "Bundler",
96
"jsx": "react-jsx",
107
"esModuleInterop": true,
118
"skipLibCheck": true,
12-
"forceConsistentCasingInFileNames": true,
13-
"allowSyntheticDefaultImports": true,
149
"strict": true,
15-
"sourceMap": true,
1610
"paths": {
1711
"@/*": ["./src/*"]
1812
},
1913
"types": ["jest", "node", "@testing-library/jest-dom"]
20-
},
21-
"include": ["src"]
14+
}
2215
}

0 commit comments

Comments
 (0)