Skip to content

Commit

Permalink
fix(package): add a separate tsconfig for prod
Browse files Browse the repository at this point in the history
Excluding test/* as it relies on optional dependencies
  • Loading branch information
sidvishnoi committed Jun 9, 2021
1 parent 06be7f7 commit c4872ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"subresources": "^1.0.1"
},
"scripts": {
"build": "tsc -p tsconfig.json",
"build": "tsc -p tsconfig.prod.json",
"dev": "tsc -p tsconfig.json -w",
"lint": "prettier '**/*.{ts,md,yml,json}' '!python_modules/**' --check"
},
"devDependencies": {
Expand All @@ -18,8 +19,7 @@
"@types/node-fetch": "^2.5.10",
"@types/serve-static": "^1.13.9",
"@types/split2": "^3.2.0",
"typescript": "^4.3.2",
"yaml": "^1.10.2"
"typescript": "^4.3.2"
},
"optionalDependencies": {
"prettier": "^2.3.1",
Expand Down
4 changes: 4 additions & 0 deletions tsconfig.prod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig",
"exclude": ["test/**"]
}

1 comment on commit c4872ea

@sidvishnoi
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regression from 453bce4

Please sign in to comment.