Skip to content

Commit

Permalink
chore: fix vscode linting + typechecking config
Browse files Browse the repository at this point in the history
  • Loading branch information
Dabolus committed Aug 8, 2023
1 parent 0a41649 commit ab21e69
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
5 changes: 4 additions & 1 deletion rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ export default defineConfig({
}),
]
: []),
typescript({ useTsconfigDeclarationDir: true }),
typescript({
tsconfig: 'tsconfig.build.json',
useTsconfigDeclarationDir: true,
}),
...(prod
? [
terser({
Expand Down
7 changes: 7 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"baseUrl": "src"
},
"include": ["src/**/*.ts"]
}
13 changes: 6 additions & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
{
"compilerOptions": {
"baseUrl": "src",
"baseUrl": ".",
"target": "es2017",
"module": "es2015",
"moduleResolution": "node",
"lib": ["esnext", "dom"],
"strict": true,
"strictNullChecks": false,
"outDir": ".",
"experimentalDecorators": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"allowJs": true,
"checkJs": true,
"declaration": true,
"declarationDir": ".",
"sourceMap": true
},
"include": [
"src/**/*.ts"
],
"exclude": [
"node_modules"
]
"include": ["src/**/*.ts", "test/**/*.ts", "rollup.config.ts"],
"exclude": ["node_modules"]
}

0 comments on commit ab21e69

Please sign in to comment.