Skip to content

Commit d1f5092

Browse files
Copilothotlong
andauthored
fix: complete TypeScript 6.0 compatibility for all packages
- Add types/lib/rootDir/ignoreDeprecations to remaining packages - Fix CLI tsconfig.build.json and studio.ts duplex type assertion - Fix example tsconfigs missing rootDir (TS5011) - Add types: ['node', 'react'] to client-react tsconfig Agent-Logs-Url: https://github.com/objectstack-ai/spec/sessions/9e301085-419a-4078-a1e8-ace1f662fd71 Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 570cb45 commit d1f5092

21 files changed

Lines changed: 141 additions & 37 deletions

File tree

examples/app-crm/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"esModuleInterop": true,
88
"forceConsistentCasingInFileNames": true,
99
"skipLibCheck": true,
10-
"outDir": "./dist"
10+
"outDir": "./dist",
11+
"rootDir": "./src"
1112
},
1213
"include": ["src/**/*"]
1314
}

examples/app-host/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
44
"outDir": "./dist",
5+
"rootDir": "./src",
56
"module": "NodeNext"
67
},
78
"include": ["src/**/*"],

examples/app-todo/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"esModuleInterop": true,
88
"forceConsistentCasingInFileNames": true,
99
"skipLibCheck": true,
10-
"outDir": "./dist"
10+
"outDir": "./dist",
11+
"rootDir": "./src"
1112
},
1213
"include": ["src/**/*"]
1314
}

packages/adapters/express/tsconfig.json

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,21 @@
66
"module": "NodeNext",
77
"moduleResolution": "NodeNext",
88
"esModuleInterop": true,
9-
"skipLibCheck": true
9+
"skipLibCheck": true,
10+
"lib": [
11+
"ES2020",
12+
"DOM",
13+
"DOM.Iterable"
14+
],
15+
"types": [
16+
"node"
17+
]
1018
},
11-
"include": ["src/**/*"],
12-
"exclude": ["node_modules", "dist"]
19+
"include": [
20+
"src/**/*"
21+
],
22+
"exclude": [
23+
"node_modules",
24+
"dist"
25+
]
1326
}

packages/adapters/fastify/tsconfig.json

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,21 @@
66
"module": "NodeNext",
77
"moduleResolution": "NodeNext",
88
"esModuleInterop": true,
9-
"skipLibCheck": true
9+
"skipLibCheck": true,
10+
"lib": [
11+
"ES2020",
12+
"DOM",
13+
"DOM.Iterable"
14+
],
15+
"types": [
16+
"node"
17+
]
1018
},
11-
"include": ["src/**/*"],
12-
"exclude": ["node_modules", "dist"]
19+
"include": [
20+
"src/**/*"
21+
],
22+
"exclude": [
23+
"node_modules",
24+
"dist"
25+
]
1326
}

packages/adapters/hono/tsconfig.json

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,21 @@
66
"module": "NodeNext",
77
"moduleResolution": "NodeNext",
88
"esModuleInterop": true,
9-
"skipLibCheck": true
9+
"skipLibCheck": true,
10+
"lib": [
11+
"ES2020",
12+
"DOM",
13+
"DOM.Iterable"
14+
],
15+
"types": [
16+
"node"
17+
]
1018
},
11-
"include": ["src/**/*"],
12-
"exclude": ["node_modules", "dist"]
19+
"include": [
20+
"src/**/*"
21+
],
22+
"exclude": [
23+
"node_modules",
24+
"dist"
25+
]
1326
}

packages/adapters/nestjs/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"emitDecoratorMetadata": true,
99
"moduleResolution": "NodeNext",
1010
"esModuleInterop": true,
11-
"skipLibCheck": true
11+
"skipLibCheck": true,
12+
"lib": ["ES2020", "DOM", "DOM.Iterable"],
13+
"types": ["node"]
1214
},
1315
"include": ["src/**/*"],
1416
"exclude": ["node_modules", "dist"]

packages/adapters/nextjs/tsconfig.json

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,21 @@
66
"module": "NodeNext",
77
"moduleResolution": "NodeNext",
88
"esModuleInterop": true,
9-
"skipLibCheck": true
9+
"skipLibCheck": true,
10+
"lib": [
11+
"ES2020",
12+
"DOM",
13+
"DOM.Iterable"
14+
],
15+
"types": [
16+
"node"
17+
]
1018
},
11-
"include": ["src/**/*"],
12-
"exclude": ["node_modules", "dist"]
19+
"include": [
20+
"src/**/*"
21+
],
22+
"exclude": [
23+
"node_modules",
24+
"dist"
25+
]
1326
}

packages/adapters/nuxt/tsconfig.json

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,21 @@
66
"module": "NodeNext",
77
"moduleResolution": "NodeNext",
88
"esModuleInterop": true,
9-
"skipLibCheck": true
9+
"skipLibCheck": true,
10+
"lib": [
11+
"ES2020",
12+
"DOM",
13+
"DOM.Iterable"
14+
],
15+
"types": [
16+
"node"
17+
]
1018
},
11-
"include": ["src/**/*"],
12-
"exclude": ["node_modules", "dist"]
19+
"include": [
20+
"src/**/*"
21+
],
22+
"exclude": [
23+
"node_modules",
24+
"dist"
25+
]
1326
}

packages/adapters/sveltekit/tsconfig.json

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,21 @@
66
"module": "NodeNext",
77
"moduleResolution": "NodeNext",
88
"esModuleInterop": true,
9-
"skipLibCheck": true
9+
"skipLibCheck": true,
10+
"lib": [
11+
"ES2020",
12+
"DOM",
13+
"DOM.Iterable"
14+
],
15+
"types": [
16+
"node"
17+
]
1018
},
11-
"include": ["src/**/*"],
12-
"exclude": ["node_modules", "dist"]
19+
"include": [
20+
"src/**/*"
21+
],
22+
"exclude": [
23+
"node_modules",
24+
"dist"
25+
]
1326
}

0 commit comments

Comments
 (0)