Skip to content

Commit

Permalink
feat: improve ts config
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherPHolder committed Aug 15, 2023
1 parent b3e4f3a commit f2dfa1f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
18 changes: 7 additions & 11 deletions libs/cli-middleware/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"module": "commonjs",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"types": ["vitest"]
},
"files": [],
"include": [],
"references": [
Expand All @@ -19,5 +9,11 @@
{
"path": "./tsconfig.spec.json"
}
]
],
"compilerOptions": {
"target": "es2022",
"module": "esnext",
"moduleResolution": "node",
"esModuleInterop": true
}
}
6 changes: 3 additions & 3 deletions libs/cli-middleware/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"declaration": true,
"module": "es2022",
"types": ["node"]
},
"include": ["src/**/*.ts"],
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
"exclude": ["src/**/*.spec.ts", "src/**/*.test.ts"],
"include": ["src/**/*.ts"]
}
1 change: 1 addition & 0 deletions libs/cli-middleware/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "es2022",
"outDir": "../../dist/out-tsc",
"types": ["vitest/globals", "vitest/importMeta", "vite/client", "node"]
},
Expand Down

0 comments on commit f2dfa1f

Please sign in to comment.