Skip to content

Commit 70eaba1

Browse files
fix(ts6): fix empty DTS output across 22 packages and console build errors
Agent-Logs-Url: https://github.com/objectstack-ai/objectui/sessions/13f2fe86-b9b5-4aa0-a93c-89f37856ce7a Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>
1 parent 743a6a5 commit 70eaba1

File tree

27 files changed

+29
-4
lines changed

27 files changed

+29
-4
lines changed

apps/console/plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
* @see https://github.com/objectstack-ai/objectui
2222
*/
2323

24-
import { fileURLToPath } from 'url';
25-
import { dirname, resolve } from 'path';
24+
import { fileURLToPath } from 'node:url';
25+
import { dirname, resolve } from 'node:path';
2626

2727
const __filename = fileURLToPath(import.meta.url);
2828
const __dirname = dirname(__filename);

apps/console/tsconfig.plugin.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"declaration": true,
77
"strict": true,
88
"skipLibCheck": true,
9-
"esModuleInterop": true
9+
"esModuleInterop": true,
10+
"types": ["node"]
1011
},
1112
"include": ["plugin.ts"]
1213
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="vite/client" />

examples/msw-todo/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"moduleResolution": "bundler",
1111
"allowImportingTsExtensions": true,
1212
"resolveJsonModule": true,
13+
"allowArbitraryExtensions": true,
1314
"isolatedModules": true,
1415
"noEmit": true,
1516
"jsx": "react-jsx",

packages/components/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export default defineConfig({
1616
react(),
1717
dts({
1818
insertTypesEntry: true,
19+
compilerOptions: { rootDir: resolve(__dirname, '../..') },
1920
include: ['src'],
2021
}),
2122
],

packages/fields/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export default defineConfig({
88
react(),
99
dts({
1010
insertTypesEntry: true,
11+
compilerOptions: { rootDir: path.resolve(__dirname, '../..') },
1112
}),
1213
],
1314
resolve: {

packages/layout/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export default defineConfig({
88
react(),
99
dts({
1010
insertTypesEntry: true,
11+
compilerOptions: { rootDir: resolve(__dirname, '../..') },
1112
include: ['src'],
1213
}),
1314
],

packages/plugin-aggrid/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export default defineConfig({
1616
react(),
1717
dts({
1818
insertTypesEntry: true,
19+
compilerOptions: { rootDir: resolve(__dirname, '../..') },
1920
include: ['src'],
2021
exclude: ['**/*.test.ts', '**/*.test.tsx', 'node_modules'],
2122
skipDiagnostics: true,

packages/plugin-ai/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export default defineConfig({
88
react(),
99
dts({
1010
insertTypesEntry: true,
11+
compilerOptions: { rootDir: resolve(__dirname, '../..') },
1112
include: ['src'],
1213
exclude: ['**/*.test.ts', '**/*.test.tsx', 'node_modules'],
1314
skipDiagnostics: true,

packages/plugin-calendar/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export default defineConfig({
2222
react(),
2323
dts({
2424
insertTypesEntry: true,
25+
compilerOptions: { rootDir: resolve(__dirname, '../..') },
2526
include: ['src'],
2627
exclude: ['**/*.test.ts', '**/*.test.tsx', 'node_modules'],
2728
skipDiagnostics: true,

0 commit comments

Comments
 (0)