Skip to content

Commit fd57796

Browse files
committed
fix: typecheck issues after demo merge
1 parent b95ca15 commit fd57796

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

apps/demo/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"skipLibCheck": true,
1010
"sourceMap": true,
1111
"strict": true,
12-
"moduleResolution": "bundler"
12+
"moduleResolution": "bundler",
13+
"composite": true
1314
},
1415
"references": [
1516
{

pkgs/client/vite.config.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,17 @@ export default defineConfig({
77
root: __dirname,
88
cacheDir: '../../node_modules/.vite/pkgs/client',
99
plugins: [
10-
dts({
10+
dts({
1111
include: ['src/**/*.ts'],
1212
outDir: 'dist',
1313
rollupTypes: false, // Don't bundle for now
1414
insertTypesEntry: true,
15-
tsConfigFilePath: resolve(__dirname, 'tsconfig.lib.json'),
16-
skipDiagnostics: true // Skip TypeScript diagnostics to avoid vite-plugin-dts errors with monorepo project references.
17-
// The plugin tries to compile all imported files (including from other packages)
15+
tsconfigPath: resolve(__dirname, 'tsconfig.lib.json'),
16+
skipDiagnostics: true // Skip TypeScript diagnostics to avoid vite-plugin-dts errors with monorepo project references.
17+
// The plugin tries to compile all imported files (including from other packages)
1818
// which breaks rootDir boundaries. Nx runs proper type checking separately.
19-
})
19+
}) as any // Type cast to avoid Vite version mismatch between packages
20+
2021
],
2122
build: {
2223
lib: {

tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
},
2121
{
2222
"path": "./pkgs/client"
23+
},
24+
{
25+
"path": "./apps/demo"
2326
}
2427
]
2528
}

0 commit comments

Comments
 (0)