Skip to content

Commit

Permalink
chore(pkg): auto sync tsconfig references
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil committed Sep 27, 2024
1 parent 42d8dbe commit 9fc100e
Show file tree
Hide file tree
Showing 26 changed files with 317 additions and 87 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
"format": "bun x prettier --check .",
"format:fix": "bun x prettier --write .",
"format:pkg": "bun x sort-package-json ./package.json ./packages/~/*/*/package.json ./e2e/package.json",
"format:tsconfig": "bun x @monorepo-utils/workspaces-to-typescript-project-references",
"postadd": "bun run format:tsconfig",
"renovate": "bun x npm-check-updates --packageManager bun --interactive --upgrade --deep",
"start": "tsx bin/src/index.ts",
"studio:moncomptepro": "bun run database:moncomptepro:run studio",
Expand Down
37 changes: 27 additions & 10 deletions packages/~/app/api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,32 @@
},
"extends": "@~/config.typescript/base/tsconfig.json",
"references": [
{ "path": "../../auth/api/tsconfig.json" },
{ "path": "../../infra/moncomptepro/database/tsconfig.json" },
{ "path": "../../moderations/api/tsconfig.json" },
{ "path": "../../organizations/api/tsconfig.json" },
{ "path": "../../proxy/api/tsconfig.json" },
{ "path": "../../users/api/tsconfig.json" },
{ "path": "../../welcome/api/tsconfig.json" },
{ "path": "../core/tsconfig.json" },
{ "path": "../layout/tsconfig.json" },
{ "path": "../middleware/tsconfig.json" }
{
"path": "../core"
},
{
"path": "../layout"
},
{
"path": "../sentry"
},
{
"path": "../../auth/api"
},
{
"path": "../../moderations/api"
},
{
"path": "../../organizations/api"
},
{
"path": "../../proxy/api"
},
{
"path": "../../users/api"
},
{
"path": "../../welcome/api"
}
]
}
21 changes: 16 additions & 5 deletions packages/~/app/layout/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,24 @@
"compilerOptions": {
"jsxImportSource": "hono/jsx",
"outDir": "./node_modules/.cache/tsc",
"lib": ["DOM"],
"types": ["bun-types", "hono"]
"lib": [
"DOM"
],
"types": [
"bun-types",
"hono"
]
},
"extends": "@~/config.typescript/tsx/tsconfig.json",
"references": [
{ "path": "../core/tsconfig.json" },
{ "path": "../middleware/tsconfig.json" },
{ "path": "../urls/tsconfig.json" }
{
"path": "../core"
},
{
"path": "../middleware"
},
{
"path": "../urls"
}
]
}
23 changes: 18 additions & 5 deletions packages/~/app/middleware/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,23 @@
},
"extends": "@~/config.typescript/base/tsconfig.json",
"references": [
{ "path": "../../infra/moncomptepro/database/tsconfig.json" },
{ "path": "../core/tsconfig.json" },
{ "path": "../sentry/tsconfig.json" },
{ "path": "../ui/tsconfig.json" },
{ "path": "../urls/tsconfig.json" }
{
"path": "../core"
},
{
"path": "../sentry"
},
{
"path": "../ui"
},
{
"path": "../urls"
},
{
"path": "../../infra/moncomptepro/database"
},
{
"path": "../../infra/moncomptepro/lib"
}
]
}
2 changes: 1 addition & 1 deletion packages/~/app/sentry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"format": "prettier --write src/**/*.ts"
},
"dependencies": {
"@~/app.core": "workspace:*",
"@sentry/node": "8.31.0",
"@sentry/profiling-node": "8.31.0",
"@~/app.core": "workspace:*",
"consola": "3.2.3",
"hono": "4.6.3"
},
Expand Down
10 changes: 8 additions & 2 deletions packages/~/app/sentry/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
{
"compilerOptions": {
"types": ["bun-types"],
"types": [
"bun-types"
],
"outDir": "./node_modules/.cache/tsc"
},
"extends": "@~/config.typescript/base/tsconfig.json",
"references": [{ "path": "../core/tsconfig.json" }]
"references": [
{
"path": "../core"
}
]
}
24 changes: 19 additions & 5 deletions packages/~/app/ui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,28 @@
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "hono/jsx",
"lib": ["DOM"],
"lib": [
"DOM"
],
"outDir": "./node_modules/.cache/tsc",
"types": ["bun-types", "hono"]
"types": [
"bun-types",
"hono"
]
},
"extends": "@~/config.typescript/tsx/tsconfig.json",
"references": [
{ "path": "../../config/happydom/tsconfig.json" },
{ "path": "../core/tsconfig.json" },
{ "path": "../urls/tsconfig.json" }
{
"path": "../core"
},
{
"path": "../urls"
},
{
"path": "../../../hono-slotify"
},
{
"path": "../../config/happydom"
}
]
}
12 changes: 9 additions & 3 deletions packages/~/auth/api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@
},
"extends": "@~/config.typescript/api/tsconfig.json",
"references": [
{ "path": "../../app/core/tsconfig.json" },
{ "path": "../../app/middleware/tsconfig.json" },
{ "path": "../../app/urls/tsconfig.json" }
{
"path": "../../app/core"
},
{
"path": "../../app/middleware"
},
{
"path": "../../app/urls"
}
]
}
7 changes: 6 additions & 1 deletion packages/~/infra/crisp/lib/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@
"compilerOptions": {
"outDir": "./node_modules/.cache/tsc"
},
"extends": "@~/config.typescript/bun/tsconfig.json"
"extends": "@~/config.typescript/bun/tsconfig.json",
"references": [
{
"path": "../../../app/core"
}
]
}
6 changes: 5 additions & 1 deletion packages/~/infra/crisp/middleware/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
"outDir": "./node_modules/.cache/tsc"
},
"extends": "@~/config.typescript/bun/tsconfig.json",
"references": [{ "path": "../lib/tsconfig.json" }]
"references": [
{
"path": "../lib"
}
]
}
6 changes: 5 additions & 1 deletion packages/~/infra/crisp/ui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@
"outDir": "./node_modules/.cache/tsc"
},
"extends": "@~/config.typescript/tsx/tsconfig.json",
"references": [{ "path": "../lib/tsconfig.json" }]
"references": [
{
"path": "../lib"
}
]
}
13 changes: 11 additions & 2 deletions packages/~/infra/moncomptepro/database/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
{
"compilerOptions": {
"outDir": "./node_modules/.cache/tsc",
"types": ["pg"]
"types": [
"pg"
]
},
"extends": "@~/config.typescript/base/tsconfig.json",
"references": [{ "path": "../../../app/core/tsconfig.json" }]
"references": [
{
"path": "../../../app/core"
},
{
"path": "../lib"
}
]
}
7 changes: 6 additions & 1 deletion packages/~/infra/moncomptepro/lib/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@
"compilerOptions": {
"outDir": "./node_modules/.cache/tsc"
},
"extends": "@~/config.typescript/bun/tsconfig.json"
"extends": "@~/config.typescript/bun/tsconfig.json",
"references": [
{
"path": "../../../app/core"
}
]
}
19 changes: 16 additions & 3 deletions packages/~/infra/zammad/api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,22 @@
"composite": true,
"declaration": true,
"emitDeclarationOnly": true,
"lib": ["ESNext", "DOM"],
"lib": [
"ESNext",
"DOM"
],
"noEmit": false,
"outDir": "./node_modules/.cache/tsc",
"types": ["bun-types"]
}
"types": [
"bun-types"
]
},
"references": [
{
"path": "../../../app/core"
},
{
"path": "../lib"
}
]
}
7 changes: 6 additions & 1 deletion packages/~/infra/zammad/lib/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@
"compilerOptions": {
"outDir": "./node_modules/.cache/tsc"
},
"extends": "@~/config.typescript/bun/tsconfig.json"
"extends": "@~/config.typescript/bun/tsconfig.json",
"references": [
{
"path": "../../../app/core"
}
]
}
55 changes: 42 additions & 13 deletions packages/~/moderations/api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,48 @@
"outDir": "./node_modules/.cache/tsc"
},
"extends": "@~/config.typescript/api/tsconfig.json",
"include": ["src"],
"include": [
"src"
],
"references": [
{ "path": "../../app/layout/tsconfig.json" },
{ "path": "../../app/middleware/tsconfig.json" },
{ "path": "../../app/ui/tsconfig.json" },
{ "path": "../../app/urls/tsconfig.json" },
{ "path": "../../infra/crisp/lib/tsconfig.json" },
{ "path": "../../infra/crisp/middleware/tsconfig.json" },
{ "path": "../../infra/crisp/ui/tsconfig.json" },
{ "path": "../../infra/moncomptepro/database/tsconfig.json" },
{ "path": "../../infra/moncomptepro/lib/tsconfig.json" },
{ "path": "../../infra/zammad/lib/tsconfig.json" },
{ "path": "../../organizations/repository/tsconfig.json" },
{ "path": "../../organizations/ui/tsconfig.json" }
{
"path": "../../app/layout"
},
{
"path": "../../app/middleware"
},
{
"path": "../../app/ui"
},
{
"path": "../../app/urls"
},
{
"path": "../../infra/crisp/lib"
},
{
"path": "../../infra/crisp/middleware"
},
{
"path": "../../infra/crisp/ui"
},
{
"path": "../lib"
},
{
"path": "../../infra/moncomptepro/database"
},
{
"path": "../../infra/moncomptepro/lib"
},
{
"path": "../../organizations/repository"
},
{
"path": "../../organizations/ui"
},
{
"path": "../../infra/zammad/lib"
}
]
}
20 changes: 15 additions & 5 deletions packages/~/moderations/lib/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,21 @@
"outDir": "./node_modules/.cache/tsc"
},
"extends": "@~/config.typescript/base/tsconfig.json",
"include": ["src"],
"include": [
"src"
],
"references": [
{ "path": "../../app/core/tsconfig.json" },
{ "path": "../../infra/crisp/lib/tsconfig.json" },
{ "path": "../../infra/moncomptepro/database/tsconfig.json" },
{ "path": "../repository/tsconfig.json" }
{
"path": "../../app/core"
},
{
"path": "../../infra/crisp/lib"
},
{
"path": "../repository"
},
{
"path": "../../infra/moncomptepro/database"
}
]
}
10 changes: 8 additions & 2 deletions packages/~/moderations/repository/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"outDir": "./node_modules/.cache/tsc"
},
"extends": "@~/config.typescript/base/tsconfig.json",
"include": ["src"],
"references": [{ "path": "../../infra/moncomptepro/database/tsconfig.json" }]
"include": [
"src"
],
"references": [
{
"path": "../../infra/moncomptepro/database"
}
]
}
Loading

0 comments on commit 9fc100e

Please sign in to comment.