Skip to content

Commit

Permalink
exclude tests from the build the right way(using tsconfig extends)
Browse files Browse the repository at this point in the history
  • Loading branch information
langleyd committed Oct 7, 2024
1 parent 0411348 commit 6c020ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"build"
],
"scripts": {
"build": "tsc -outDir build src/*.ts",
"build": "tsc --project tsconfig.build.json",
"start": "ts-node ./src/build.ts",
"prepare": "yarn build && yarn start",
"lint": "eslint .",
Expand Down
4 changes: 4 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"exclude": ["./test/**/*.ts"]
}

0 comments on commit 6c020ec

Please sign in to comment.