Skip to content

Commit

Permalink
Merge pull request #409 from layer5io/408-tsconfig
Browse files Browse the repository at this point in the history
chore(repo): Remove tsconfig, and configure tsconfig in root
  • Loading branch information
nebula-aac authored Dec 10, 2023
2 parents 1e35a89 + fef4242 commit 91ffda2
Show file tree
Hide file tree
Showing 12 changed files with 49 additions and 99 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"lint-staged": "^14.0.1",
"prettier": "^3.0.3",
"prettier-plugin-organize-imports": "^3.2.3",
"tsconfig": "workspace:^",
"typescript": "^5.2.2"
},
"packageManager": "[email protected]"
Expand Down
1 change: 0 additions & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"eslint-plugin-react": "^7.33.2",
"mui-datatables": "^4.3.0",
"notistack": "^3.0.1",
"tsconfig": "workspace:^",
"tsup": "^7.2.0",
"typescript": "^5.0.2"
},
Expand Down
16 changes: 2 additions & 14 deletions packages/components/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
{
"extends": "tsconfig/react-library.json",
"compilerOptions": {
"declarationMap": true,
"emitDeclarationOnly": true,
"typeRoots": ["./src/types"],
"types": ["react-error-boundary"],
"lib": ["es2020", "DOM"],
"target": "es2020",
"module": "esnext"
},
"include": ["."],
"exclude": ["dist", "build", "node_modules", "**/*.d.ts", "tsup.config.ts"]
}

"extends": ["../../tsconfig.json"]
}
1 change: 0 additions & 1 deletion packages/svg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3",
"tsconfig": "workspace:^",
"tsup": "^7.2.0",
"typescript": "^5.0.2"
},
Expand Down
16 changes: 2 additions & 14 deletions packages/svg/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
{
"extends": "tsconfig/react-library.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"base": ["src/base/*"],
"custom": ["src/custom/*"]
},
"declarationMap": true,
"emitDeclarationOnly": true
},
"include": ["."],
"exclude": ["dist", "build", "node_modules", "**/*.d.ts", "tsup.config.ts"]
}

"extends": ["../../tsconfig.json"]
}
1 change: 0 additions & 1 deletion packages/tsconfig/README.md

This file was deleted.

21 changes: 0 additions & 21 deletions packages/tsconfig/base.json

This file was deleted.

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

This file was deleted.

18 changes: 0 additions & 18 deletions packages/tsconfig/react-app.json

This file was deleted.

12 changes: 0 additions & 12 deletions packages/tsconfig/react-library.json

This file was deleted.

45 changes: 45 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"lib": [
"DOM",
"ESNext"
],
"declaration": true,
"sourceMap": true,
"moduleResolution": "Node",
"experimentalDecorators": true,
"skipLibCheck": true,
"strict": true,
"isolatedModules": true,
"noFallthroughCasesInSwitch": true,
"jsx": "react-jsx",
"esModuleInterop": true,
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"importHelpers": true,
"baseUrl": ".",
"paths": {
"@layer5/sistent-components": [
"packages/components"
],
"@layer5/eslint-config-sistent": [
"packages/eslint-config-sistent"
],
"@layer5/rtk-query-codegen": [
"rtk-query-codegen"
],
"@layer5/sistent-svg": [
"packages/svg"
],
}
},
"include": [
"."
],
"exclude": [
"**/node_modules",
"**/dist"
]
}
9 changes: 0 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,6 @@ __metadata:
notistack: ^3.0.1
react: ^17.0.0 || ^18.0.0
react-dom: ^17.0.0 || ^18.0.0
tsconfig: "workspace:^"
tsup: ^7.2.0
typescript: ^5.0.2
peerDependencies:
Expand Down Expand Up @@ -1025,7 +1024,6 @@ __metadata:
eslint-plugin-react-refresh: ^0.4.3
react: ^17.0.0 || ^18.0.0
react-dom: ^17.0.0 || ^18.0.0
tsconfig: "workspace:^"
tsup: ^7.2.0
typescript: ^5.0.2
peerDependencies:
Expand Down Expand Up @@ -9694,7 +9692,6 @@ __metadata:
lint-staged: ^14.0.1
prettier: ^3.0.3
prettier-plugin-organize-imports: ^3.2.3
tsconfig: "workspace:^"
typescript: ^5.2.2
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -10379,12 +10376,6 @@ __metadata:
languageName: node
linkType: hard

"tsconfig@workspace:^, tsconfig@workspace:packages/tsconfig":
version: 0.0.0-use.local
resolution: "tsconfig@workspace:packages/tsconfig"
languageName: unknown
linkType: soft

"tslib@npm:^1.8.1":
version: 1.14.1
resolution: "tslib@npm:1.14.1"
Expand Down

0 comments on commit 91ffda2

Please sign in to comment.