Skip to content

Commit

Permalink
build: introduce @vp-tw/tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
VdustR committed Feb 18, 2024
1 parent 4410d5c commit 5f7b918
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 54 deletions.
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@
"@repo/tsconfig": "workspace:*",
"@repo/utils": "workspace:*",
"@total-typescript/ts-reset": "^0.5.1",
"@tsconfig/node20": "^20.1.2",
"@tsconfig/strictest": "^2.0.2",
"@tsconfig/vite-react": "^3.0.0",
"@types/eslint": "^8.56.2",
"@types/eslint__eslintrc": "^2.1.1",
"@types/lint-staged": "^13.3.0",
Expand All @@ -46,6 +43,7 @@
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"@vitejs/plugin-react": "^4.2.1",
"@vp-tw/tsconfig": "^1.0.0",
"commitizen": "^4.3.0",
"cspell": "^8.3.2",
"eslint": "npm:eslint-ts-patch@8.56.0-0",
Expand Down
2 changes: 1 addition & 1 deletion packages/app/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": ["@repo/tsconfig/react/tsconfig"],
"extends": ["@repo/tsconfig/app/tsconfig"]
}
4 changes: 2 additions & 2 deletions packages/build/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": ["@repo/tsconfig/node/tsconfig"],
"include": ["vite.config.ts"],
"extends": ["@repo/tsconfig/script/tsconfig"],
"include": ["vite.config.ts"]
}
5 changes: 5 additions & 0 deletions packages/tsconfig/app/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Repo App",
"extends": ["@vp-tw/tsconfig/base/vite-react/tsconfig"]
}
8 changes: 0 additions & 8 deletions packages/tsconfig/checkJs/tsconfig.json

This file was deleted.

7 changes: 0 additions & 7 deletions packages/tsconfig/noEmit/tsconfig.json

This file was deleted.

10 changes: 0 additions & 10 deletions packages/tsconfig/node/tsconfig.json

This file was deleted.

10 changes: 0 additions & 10 deletions packages/tsconfig/react/tsconfig.json

This file was deleted.

5 changes: 5 additions & 0 deletions packages/tsconfig/script/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Repo Script",
"extends": ["@vp-tw/tsconfig/base/bundler/tsconfig"]
}
2 changes: 1 addition & 1 deletion packages/utils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": ["@repo/tsconfig/react/tsconfig"],
"extends": ["@repo/tsconfig/app/tsconfig"]
}
24 changes: 13 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": ["@repo/tsconfig/node/tsconfig"],
"extends": ["@repo/tsconfig/script/tsconfig"],
"include": ["*.config.*", "*.d.ts"]
}

0 comments on commit 5f7b918

Please sign in to comment.