Skip to content

Commit

Permalink
chore: add build specific tsconfig (#282)
Browse files Browse the repository at this point in the history
* chore: add build specific tsconfig

* chore: update types reference
  • Loading branch information
rossreicks authored Aug 8, 2023
1 parent 799416d commit 8ec89c9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "@TractorZoom",
"license": "MIT",
"scripts": {
"build": "rimraf lib && tsc --allowJs false && cp package.json lib",
"build": "rimraf lib && tsc --project tsconfig.build.json && cp package.json lib",
"commit": "git-cz",
"test": "jest",
"prettier:all": "prettier --write './**/*.*'",
Expand Down Expand Up @@ -67,5 +67,5 @@
"serverless-mysql",
"sql"
],
"types": "./lib/index.d.ts"
"types": "index.d.ts"
}
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": {
"allowJs": false
},
"exclude": ["__tests__/**/*.spec.ts"]
}

0 comments on commit 8ec89c9

Please sign in to comment.