Skip to content

Commit

Permalink
fix: adding multiple tsconfig files (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyhastings authored Oct 25, 2022
1 parent c768dc2 commit b0f7a61
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/tricky-owls-explain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@anthonyhastings/tds-utils": patch
---

Adding second tsconfig file explicit for builds
2 changes: 1 addition & 1 deletion packages/tds-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"dist/**"
],
"scripts": {
"build": "vite build && tsc --project tsconfig.json --declaration --emitDeclarationOnly --outDir dist",
"build": "vite build && tsc --project tsconfig.build.json --declaration --emitDeclarationOnly --outDir dist",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
"lint": "TIMING=1 eslint src/**/*.ts* --fix",
"test": "jest",
Expand Down
4 changes: 4 additions & 0 deletions packages/tds-utils/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"exclude": ["node_modules", "src/**/*.spec.ts", "src/**/*.spec.tsx"]
}
2 changes: 1 addition & 1 deletion packages/tds-utils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "config-tsconfig/react-library.json",
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["node_modules", "src/**/*.spec.ts", "src/**/*.spec.tsx"]
"exclude": ["node_modules"]
}

0 comments on commit b0f7a61

Please sign in to comment.