Skip to content

Commit 457da44

Browse files
fix: add missing TypeScript project references to all packages
Agent-Logs-Url: https://github.com/objectstack-ai/objectui/sessions/de504ad4-2ea3-4ba8-8cb8-f8f72a5ac86b Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>
1 parent e83e00d commit 457da44

30 files changed

Lines changed: 571 additions & 48 deletions

File tree

packages/auth/tsconfig.json

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,28 @@
66
"jsx": "react-jsx",
77
"baseUrl": ".",
88
"paths": {
9-
"@/*": ["src/*"]
9+
"@/*": [
10+
"src/*"
11+
]
1012
},
1113
"noEmit": false,
1214
"declaration": true,
1315
"composite": true,
1416
"declarationMap": true,
1517
"skipLibCheck": true
1618
},
17-
"include": ["src"],
18-
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.test.tsx"]
19+
"include": [
20+
"src"
21+
],
22+
"exclude": [
23+
"node_modules",
24+
"dist",
25+
"**/*.test.ts",
26+
"**/*.test.tsx"
27+
],
28+
"references": [
29+
{
30+
"path": "../types"
31+
}
32+
]
1933
}

packages/cli/tsconfig.json

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,28 @@
55
"rootDir": "./src",
66
"module": "ESNext",
77
"target": "ES2020",
8-
"lib": ["ES2020"],
8+
"lib": [
9+
"ES2020"
10+
],
911
"moduleResolution": "bundler",
1012
"resolveJsonModule": true
1113
},
12-
"include": ["src/**/*"],
13-
"exclude": ["node_modules", "dist"]
14+
"include": [
15+
"src/**/*"
16+
],
17+
"exclude": [
18+
"node_modules",
19+
"dist"
20+
],
21+
"references": [
22+
{
23+
"path": "../components"
24+
},
25+
{
26+
"path": "../react"
27+
},
28+
{
29+
"path": "../types"
30+
}
31+
]
1432
}

packages/collaboration/tsconfig.json

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,28 @@
66
"jsx": "react-jsx",
77
"baseUrl": ".",
88
"paths": {
9-
"@/*": ["src/*"]
9+
"@/*": [
10+
"src/*"
11+
]
1012
},
1113
"noEmit": false,
1214
"declaration": true,
1315
"composite": true,
1416
"declarationMap": true,
1517
"skipLibCheck": true
1618
},
17-
"include": ["src"],
18-
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.test.tsx"]
19+
"include": [
20+
"src"
21+
],
22+
"exclude": [
23+
"node_modules",
24+
"dist",
25+
"**/*.test.ts",
26+
"**/*.test.tsx"
27+
],
28+
"references": [
29+
{
30+
"path": "../types"
31+
}
32+
]
1933
}

packages/components/tsconfig.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,19 @@
1515
"skipLibCheck": true
1616
},
1717
"include": ["src"],
18-
"exclude": ["src/__tests__", "**/*.test.ts", "**/*.test.tsx", "src/stories-json", "**/*.stories.tsx"]
18+
"exclude": ["src/__tests__", "**/*.test.ts", "**/*.test.tsx", "src/stories-json", "**/*.stories.tsx"],
19+
"references": [
20+
{
21+
"path": "../core"
22+
},
23+
{
24+
"path": "../i18n"
25+
},
26+
{
27+
"path": "../react"
28+
},
29+
{
30+
"path": "../types"
31+
}
32+
]
1933
}

packages/fields/tsconfig.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,24 @@
55
"rootDir": "..",
66
"jsx": "react-jsx"
77
},
8-
"include": ["src"]
8+
"include": [
9+
"src"
10+
],
11+
"references": [
12+
{
13+
"path": "../components"
14+
},
15+
{
16+
"path": "../core"
17+
},
18+
{
19+
"path": "../i18n"
20+
},
21+
{
22+
"path": "../react"
23+
},
24+
{
25+
"path": "../types"
26+
}
27+
]
928
}

packages/layout/tsconfig.json

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,27 @@
44
"outDir": "dist",
55
"jsx": "react-jsx"
66
},
7-
"include": ["src"],
8-
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.test.tsx", "**/*.stories.tsx"]
7+
"include": [
8+
"src"
9+
],
10+
"exclude": [
11+
"node_modules",
12+
"dist",
13+
"***.test.tsx",
14+
"**/*.stories.tsx"
15+
],
16+
"references": [
17+
{
18+
"path": "../components"
19+
},
20+
{
21+
"path": "../core"
22+
},
23+
{
24+
"path": "../react"
25+
},
26+
{
27+
"path": "../types"
28+
}
29+
]
930
}

packages/mobile/tsconfig.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,10 @@
1515
"skipLibCheck": true
1616
},
1717
"include": ["src"],
18-
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.test.tsx"]
18+
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.test.tsx"],
19+
"references": [
20+
{
21+
"path": "../types"
22+
}
23+
]
1924
}

packages/permissions/tsconfig.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,10 @@
1515
"skipLibCheck": true
1616
},
1717
"include": ["src"],
18-
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.test.tsx"]
18+
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.test.tsx"],
19+
"references": [
20+
{
21+
"path": "../types"
22+
}
23+
]
1924
}

packages/plugin-aggrid/tsconfig.json

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,37 @@
55
"jsx": "react-jsx",
66
"baseUrl": ".",
77
"paths": {
8-
"@/*": ["src/*"]
8+
"@/*": [
9+
"src/*"
10+
]
911
},
1012
"noImplicitAny": true,
1113
"noEmit": false,
1214
"declaration": true,
1315
"composite": true,
1416
"skipLibCheck": true
1517
},
16-
"include": ["src"]
18+
"include": [
19+
"src"
20+
],
21+
"references": [
22+
{
23+
"path": "../components"
24+
},
25+
{
26+
"path": "../core"
27+
},
28+
{
29+
"path": "../data-objectstack"
30+
},
31+
{
32+
"path": "../fields"
33+
},
34+
{
35+
"path": "../react"
36+
},
37+
{
38+
"path": "../types"
39+
}
40+
]
1741
}

packages/plugin-ai/tsconfig.json

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,26 @@
44
"outDir": "dist",
55
"jsx": "react-jsx"
66
},
7-
"include": ["src"],
8-
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.test.tsx"]
7+
"include": [
8+
"src"
9+
],
10+
"exclude": [
11+
"node_modules",
12+
"dist",
13+
"***.test.tsx"
14+
],
15+
"references": [
16+
{
17+
"path": "../components"
18+
},
19+
{
20+
"path": "../core"
21+
},
22+
{
23+
"path": "../react"
24+
},
25+
{
26+
"path": "../types"
27+
}
28+
]
929
}

0 commit comments

Comments
 (0)