Skip to content

Commit 1c9aa46

Browse files
samchonclaude
andauthored
Consume the config package through workspace dependencies (#471)
* 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 * bump up ttsc with configuration * update pnpm-lock.yaml --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent d44d4e1 commit 1c9aa46

7 files changed

Lines changed: 57 additions & 78 deletions

File tree

config/package.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@
33
"name": "@ORGANIZATION/PROJECT-config",
44
"version": "0.1.0",
55
"description": "Shared TypeScript and @ttsc/lint configuration for the workspace",
6-
"exports": {
7-
"./lint": {
8-
"types": "./lint.config.ts",
9-
"default": "./lint.config.ts"
10-
},
11-
"./tsconfig": "./tsconfig.json",
12-
"./package.json": "./package.json"
13-
},
146
"files": [
157
"lint.config.ts",
168
"tsconfig.json"

packages/api/lint.config.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import type { ITtscLintConfig } from "@ttsc/lint";
22

3-
import shared from "../../config/lint.config";
4-
53
const config = {
6-
...shared,
4+
extends: "../../config/lint.config.ts",
75
ignores: ["src/functional/**/*.ts"],
86
} satisfies ITtscLintConfig;
97

packages/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
"typia": "catalog:samchon"
3838
},
3939
"devDependencies": {
40-
"@ORGANIZATION/PROJECT-api": "workspace:^",
4140
"@rollup/plugin-terser": "^0.4.4",
4241
"@ttsc/lint": "catalog:typescript",
42+
"@ttsc/paths": "catalog:typescript",
4343
"rollup": "^4.18.0",
4444
"ttsc": "catalog:typescript",
4545
"typescript": "catalog:typescript"

packages/backend/lint.config.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import type { ITtscLintConfig } from "@ttsc/lint";
22

3-
import shared from "../../config/lint.config";
4-
53
const config = {
6-
...shared,
4+
extends: "../../config/lint.config.ts",
75
ignores: ["src/prisma/**/*.ts"],
86
} satisfies ITtscLintConfig;
97

packages/backend/test/lint.config.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

pnpm-lock.yaml

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

pnpm-workspace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ catalogs:
1616
rimraf: ^6.1.3
1717
uuid: ^13.0.0
1818
typescript:
19-
ttsc: &ttsc ^0.18.0
19+
ttsc: &ttsc ^0.18.1
2020
"@ttsc/lint": *ttsc
2121
"@ttsc/paths": *ttsc
2222
"@ttsc/unplugin": *ttsc

0 commit comments

Comments
 (0)