Skip to content

Commit edc6ca4

Browse files
authored
Merge pull request #1230 from getlarge/issue-1215-backend-client-tsconfigs
refactor(tsconfig): split Vite runtime package configs
2 parents 16099cf + 3af27c5 commit edc6ca4

25 files changed

Lines changed: 183 additions & 113 deletions

apps/agent-daemon/tsconfig.json

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,16 @@
1010
"include": ["src/**/*.ts", "src/**/*.d.ts"],
1111
"references": [
1212
{
13-
"path": "../../libs/agent-runtime"
14-
},
15-
{
16-
"path": "../../libs/bootstrap"
17-
},
18-
{
19-
"path": "../../libs/crypto-service"
13+
"path": "../../libs/tasks"
2014
},
2115
{
2216
"path": "../../libs/database"
2317
},
2418
{
25-
"path": "../../libs/pi-extension"
26-
},
27-
{
28-
"path": "../../libs/sdk"
19+
"path": "../../libs/bootstrap"
2920
},
3021
{
31-
"path": "../../libs/tasks"
22+
"path": "../../libs/crypto-service"
3223
}
3324
]
3425
}

docs/tsconfig.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
"extends": "../tsconfig.json",
1111
"include": [".vitepress/**/*", "scripts/**/*"],
1212
"references": [
13-
{
14-
"path": "../libs/sdk"
15-
},
1613
{
1714
"path": "../libs/api-client"
1815
}

libs/agent-runtime/tsconfig.json

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
{
2-
"compilerOptions": {
3-
"composite": true,
4-
"outDir": "./out-tsc",
5-
"rootDir": "./src",
6-
"tsBuildInfoFile": "./out-tsc/tsconfig.tsbuildinfo"
7-
},
8-
"exclude": ["node_modules", "dist", "__tests__"],
92
"extends": "../../tsconfig.json",
10-
"include": ["src/**/*.ts"],
3+
"files": [],
4+
"include": [],
115
"references": [
126
{
13-
"path": "../sdk"
7+
"path": "./tsconfig.lib.json"
148
},
159
{
16-
"path": "../tasks"
10+
"path": "./tsconfig.spec.json"
1711
}
1812
]
1913
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"compilerOptions": {
3+
"composite": true,
4+
"outDir": "./out-tsc",
5+
"rootDir": "./src",
6+
"tsBuildInfoFile": "./out-tsc/tsconfig.tsbuildinfo"
7+
},
8+
"exclude": ["node_modules", "dist", "src/**/*.test.ts", "src/**/*.spec.ts"],
9+
"extends": "./tsconfig.json",
10+
"include": ["src/**/*.ts"],
11+
"references": [
12+
{
13+
"path": "../sdk/tsconfig.lib.json"
14+
},
15+
{
16+
"path": "../tasks"
17+
}
18+
]
19+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"compilerOptions": {
3+
"outDir": "./out-tsc/spec",
4+
"rootDir": ".",
5+
"tsBuildInfoFile": "./out-tsc/tsconfig.spec.tsbuildinfo",
6+
"types": ["node", "vitest"]
7+
},
8+
"extends": "./tsconfig.json",
9+
"include": [
10+
"vitest.config.ts",
11+
"src/**/*.test.ts",
12+
"src/**/*.spec.ts",
13+
"src/**/*.d.ts"
14+
],
15+
"references": [
16+
{
17+
"path": "./tsconfig.lib.json"
18+
}
19+
]
20+
}

libs/agent-runtime/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default defineConfig({
66
dts({
77
rollupTypes: true,
88
bundledPackages: ['@moltnet/tasks'],
9-
tsconfigPath: './tsconfig.json',
9+
tsconfigPath: './tsconfig.lib.json',
1010
include: ['src/**/*.ts'],
1111
exclude: ['src/**/*.test.ts'],
1212
compilerOptions: {

libs/pi-extension/tsconfig.json

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,13 @@
11
{
2-
"compilerOptions": {
3-
"composite": true,
4-
"lib": ["ES2022"],
5-
"outDir": "./out-tsc",
6-
"rootDir": "./src",
7-
"tsBuildInfoFile": "./out-tsc/tsconfig.tsbuildinfo",
8-
"types": ["node"]
9-
},
10-
"exclude": ["node_modules", "dist"],
112
"extends": "../../tsconfig.json",
12-
"include": ["src"],
3+
"files": [],
4+
"include": [],
135
"references": [
146
{
15-
"path": "../agent-runtime"
7+
"path": "./tsconfig.lib.json"
168
},
179
{
18-
"path": "../crypto-service"
19-
},
20-
{
21-
"path": "../sdk"
10+
"path": "./tsconfig.spec.json"
2211
}
2312
]
2413
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"compilerOptions": {
3+
"composite": true,
4+
"lib": ["ES2022"],
5+
"outDir": "./out-tsc",
6+
"rootDir": "./src",
7+
"tsBuildInfoFile": "./out-tsc/tsconfig.tsbuildinfo",
8+
"types": ["node"]
9+
},
10+
"exclude": ["node_modules", "dist", "src/**/*.test.ts", "src/**/*.spec.ts"],
11+
"extends": "./tsconfig.json",
12+
"include": ["src"],
13+
"references": [
14+
{
15+
"path": "../sdk/tsconfig.lib.json"
16+
},
17+
{
18+
"path": "../agent-runtime/tsconfig.lib.json"
19+
},
20+
{
21+
"path": "../crypto-service"
22+
}
23+
]
24+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"compilerOptions": {
3+
"lib": ["ES2022"],
4+
"outDir": "./out-tsc/spec",
5+
"rootDir": ".",
6+
"tsBuildInfoFile": "./out-tsc/tsconfig.spec.tsbuildinfo",
7+
"types": ["node", "vitest"]
8+
},
9+
"extends": "./tsconfig.json",
10+
"include": [
11+
"vitest.config.ts",
12+
"src/**/*.test.ts",
13+
"src/**/*.spec.ts",
14+
"src/**/*.d.ts"
15+
],
16+
"references": [
17+
{
18+
"path": "./tsconfig.lib.json"
19+
}
20+
]
21+
}

libs/pi-extension/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default defineConfig({
55
plugins: [
66
dts({
77
rollupTypes: true,
8-
tsconfigPath: './tsconfig.json',
8+
tsconfigPath: './tsconfig.lib.json',
99
include: ['src/**/*.ts'],
1010
exclude: ['src/**/*.test.ts'],
1111
compilerOptions: {

0 commit comments

Comments
 (0)