Skip to content

Commit

Permalink
fix(vite-project): convert tsconfig.node to use vite-node from config…
Browse files Browse the repository at this point in the history
… lib, tsconfig cleanup
  • Loading branch information
waldronmatt committed Sep 25, 2023
1 parent 190094d commit 8a5cfce
Show file tree
Hide file tree
Showing 5 changed files with 784 additions and 566 deletions.
2 changes: 1 addition & 1 deletion apps/vite-project/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['tsconfig.eslint.json', 'tsconfig.node.json'],
project: ['tsconfig.eslint.json'],
tsconfigRootDir: __dirname,
},
};
1 change: 1 addition & 0 deletions apps/vite-project/tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "./tsconfig.json",
"include": [".*.cjs", "*.cjs", "*.config.ts", "src/*"],
"compilerOptions": {
Expand Down
4 changes: 3 additions & 1 deletion apps/vite-project/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": ["tsconfig-config/vite.json", "../../tsconfig.base.json"],
"include": ["src"],
"exclude": ["node_modules", "dist"],
"references": [{ "path": "./tsconfig.node.json" }]
"references": [{ "path": "./tsconfig.node.json" }],
"files": []
}
9 changes: 2 additions & 7 deletions apps/vite-project/tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{
"compilerOptions": {
"composite": true,
"skipLibCheck": true,
"module": "ESNext",
"moduleResolution": "bundler",
"allowSyntheticDefaultImports": true
},
"$schema": "https://json.schemastore.org/tsconfig",
"extends": ["tsconfig-config/vite-node.json", "../../tsconfig.base.json"],
"include": ["vite.config.ts"]
}
Loading

0 comments on commit 8a5cfce

Please sign in to comment.