Skip to content

Commit

Permalink
Use separate tsconfigs for IDE and build
Browse files Browse the repository at this point in the history
  • Loading branch information
Septh committed Aug 18, 2024
1 parent 3e196fc commit f7e5dd9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
11 changes: 11 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "./tsconfig.json",
"include": [
"source"
],
"compilerOptions": {
"rootDir": "source",
"outDir": "dist",
"noEmit": false,
}
}
9 changes: 4 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"files": [
"source/index.ts"
"include": [
"source",
"eslint.config.mjs"
],
"compilerOptions": {

Expand All @@ -14,13 +15,11 @@
"moduleResolution": "Node16",

// Output
"outDir": "dist",
"target": "ESNext",
"module": "Node16",
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"removeComments": true,
"noEmit": true,

// Type checking
"strict": true,
Expand Down

0 comments on commit f7e5dd9

Please sign in to comment.