Skip to content

Commit

Permalink
fix: tsconfig.json
Browse files Browse the repository at this point in the history
Including files that included files outside of src/ made the build/
include a src/ directory.  Prevented this by excluding .test.ts files
and also configured rootDir to avoid this happening again (it will
throw an error instead).
  • Loading branch information
ColonelJ committed Apr 27, 2022
1 parent 75323bd commit 0adec5a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"lib": ["es2019"],
"module": "commonjs",
"noImplicitAny": true,
"outDir": "./build/",
"outDir": "build",
"rootDir": "src",
"preserveConstEnums": true,
"strictNullChecks": true,
"strict": true,
Expand All @@ -17,5 +18,6 @@
"typeRoots": ["node_modules/@types"],
"esModuleInterop": true
},
"include": ["src/**/*"]
"include": ["src/**/*"],
"exclude": ["**/*.test.ts"]
}

0 comments on commit 0adec5a

Please sign in to comment.