Skip to content

Commit 3fe73f0

Browse files
committed
refactor: 💡 tsconfig
1 parent 9911221 commit 3fe73f0

6 files changed

Lines changed: 19 additions & 17 deletions

File tree

.oxlintrc.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@
9696
"message": "Do not import from @backend/ in frontend code. Use shared types/contracts or the frontend API client instead."
9797
},
9898
{
99-
"group": ["@internal/registry", "@internal/registry/*"],
100-
"message": "Do not import from @internal/registry in frontend code. Use @internal/enums for shared config like pricing."
99+
"group": ["@hype-stack/enums", "@hype-stack/enums/*"],
100+
"message": "Do not import from @hype-stack/enums in frontend code. Use @hype-stack/enums for shared config like pricing."
101101
}
102102
]
103103
}
@@ -112,8 +112,8 @@
112112
{
113113
"patterns": [
114114
{
115-
"group": ["@internal/registry", "@internal/registry/*"],
116-
"message": "CLI must not import from @internal/registry. The CLI is a standalone package."
115+
"group": ["@hype-stack/enums", "@hype-stack/enums/*"],
116+
"message": "CLI must not import from @hype-stack/enums. The CLI is a standalone package."
117117
}
118118
]
119119
}
@@ -135,8 +135,8 @@
135135
"message": "Pack files must NEVER import from apps/. Use @backend/* or @/* aliases."
136136
},
137137
{
138-
"group": ["@internal/*"],
139-
"message": "Pack files must NEVER import from @internal/* packages. These are internal to this repo. Packs are built for hype-stack, not for this monorepo."
138+
"group": ["@hype-stack/enums", "@hype-stack/enums/*"],
139+
"message": "Pack files must NEVER import from @hype-stack/enums packages. These are internal to this repo. Packs are built for hype-stack, not for this monorepo."
140140
},
141141
{
142142
"group": ["../setup/*", "../setup/**", "../../setup/*", "../../setup/**"],

apps/admin/tsconfig.app.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
"paths": {
1515
"@/assets/*": ["./assets/*"],
1616
"@/*": ["./src/*"],
17-
"@internal/backend": ["../backend/exported/index.ts"],
18-
"@internal/backend/*": ["../backend/exported/*"]
17+
"@hype-stack/backend": ["../backend/exported/index.ts"],
18+
"@hype-stack/backend/*": ["../backend/exported/*"],
19+
"@hype-stack/enums": ["../../packages/enums/src/index.ts"],
20+
"@hype-stack/enums/*": ["../../packages/enums/src/*"]
1921
}
2022
},
2123
"exclude": [
@@ -29,13 +31,7 @@
2931
"vite.config.mts",
3032
"vitest.config.mts"
3133
],
32-
"include": [
33-
"src/**/*.ts",
34-
"src/**/*.tsx",
35-
"src/**/*.json",
36-
"../backend/exported/**/*.ts",
37-
"../backend/global.d.ts"
38-
],
34+
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.json", "../backend/exported/**/*.ts", "../backend/global.d.ts"],
3935
"references": [
4036
{
4137
"path": "../../packages/enums/tsconfig.lib.json"

apps/admin/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
"@/assets/*": ["./assets/*"],
1212
"@/*": ["./src/*"],
1313
"@hype-stack/backend": ["../backend/exported/index.ts"],
14-
"@hype-stack/backend/*": ["../backend/exported/*"]
14+
"@hype-stack/backend/*": ["../backend/exported/*"],
15+
"@hype-stack/enums": ["../../packages/enums/src/index.ts"],
16+
"@hype-stack/enums/*": ["../../packages/enums/src/*"]
1517
}
1618
},
1719
"files": [],

apps/backend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ WORKDIR /app
3333
ENV NODE_ENV=production
3434

3535
# In a pnpm monorepo the backend's deps are symlinks in apps/backend/node_modules
36-
# pointing into the root .pnpm store, and workspace packages (e.g. @internal/enums)
36+
# pointing into the root .pnpm store, and workspace packages (e.g. @hype-stack/enums)
3737
# resolve to their built dist in packages/. The build externalizes every
3838
# dependency, so all three must be present at runtime: the root node_modules
3939
# store, the packages/ workspace libs, and the backend itself. Other apps

apps/frontend/tsconfig.app.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
"@/*": ["./src/*"],
1616
"@hype-stack/backend": ["../backend/exported/index.ts"],
1717
"@hype-stack/backend/*": ["../backend/exported/*"],
18+
"@hype-stack/enums": ["../../packages/enums/src/index.ts"],
19+
"@hype-stack/enums/*": ["../../packages/enums/src/*"],
1820
"@backend/*": ["../backend/src/*"],
1921
"@prisma/client": ["../backend/src/db/postgres/generated/client"]
2022
}

apps/frontend/tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
"@/*": ["./src/*"],
1414
"@hype-stack/backend": ["../backend/exported/index.ts"],
1515
"@hype-stack/backend/*": ["../backend/exported/*"],
16+
"@hype-stack/enums": ["../../packages/enums/src/index.ts"],
17+
"@hype-stack/enums/*": ["../../packages/enums/src/*"],
1618
"@backend/*": ["../backend/src/*"],
1719
"@prisma/client": ["../backend/src/db/postgres/generated/client"]
1820
}

0 commit comments

Comments
 (0)