Skip to content

Commit 811f9e5

Browse files
samchonclaude
andcommitted
Consume the config package through workspace dependencies
Follow-up to #470, matching nestia-start#635: - Install @ORGANIZATION/PROJECT-config as workspace:^ in api/backend and resolve the shared tsconfig by package name ("extends": "@ORGANIZATION/PROJECT-config/tsconfig") - Replace the api package's self devDependency with @ttsc/paths, which its tsconfig paths self-mapping actually relies on - Lint configs keep importing the shared config relatively for now: ttsx mixes up compiled outputs of same-basename modules when lint.config.ts files are imported across packages, breaking the @ttsc/lint config loader on cold caches Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K1Q5EM6GT2Q89UPrNRKX1z
1 parent d44d4e1 commit 811f9e5

5 files changed

Lines changed: 13 additions & 5 deletions

File tree

packages/api/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@
3737
"typia": "catalog:samchon"
3838
},
3939
"devDependencies": {
40-
"@ORGANIZATION/PROJECT-api": "workspace:^",
40+
"@ORGANIZATION/PROJECT-config": "workspace:^",
4141
"@rollup/plugin-terser": "^0.4.4",
4242
"@ttsc/lint": "catalog:typescript",
43+
"@ttsc/paths": "catalog:typescript",
4344
"rollup": "^4.18.0",
4445
"ttsc": "catalog:typescript",
4546
"typescript": "catalog:typescript"

packages/api/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../../config/tsconfig.json",
2+
"extends": "@ORGANIZATION/PROJECT-config/tsconfig",
33
"compilerOptions": {
44
"declaration": true,
55
"stripInternal": true,

packages/backend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"homepage": "https://github.com/samchon/backend",
4242
"devDependencies": {
4343
"@nestia/benchmark": "catalog:samchon",
44+
"@ORGANIZATION/PROJECT-config": "workspace:^",
4445
"@nestia/e2e": "catalog:samchon",
4546
"@nestjs/cli": "^11.0.16",
4647
"@ttsc/lint": "catalog:typescript",

packages/backend/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../../config/tsconfig.json",
2+
"extends": "@ORGANIZATION/PROJECT-config/tsconfig",
33
"compilerOptions": {
44
"outDir": "lib",
55
"rootDir": "src",

pnpm-lock.yaml

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)