Skip to content

Commit 7b8b0d3

Browse files
Copilothotlong
andcommitted
Fix TypeScript moduleResolution for all packages and examples using subpath exports
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 4e312b7 commit 7b8b0d3

9 files changed

Lines changed: 20 additions & 7 deletions

File tree

examples/ai-analyst/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"compilerOptions": {
44
"outDir": "dist",
55
"rootDir": "src",
6+
"module": "ES2020",
67
"moduleResolution": "bundler"
78
},
89
"include": ["src/**/*"],

examples/ai-codegen/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
44
"outDir": "dist",
5-
"rootDir": "src"
5+
"rootDir": "src",
6+
"module": "ES2020",
7+
"moduleResolution": "bundler"
68
},
79
"include": ["src/**/*"],
810
"exclude": ["node_modules", "dist"]

examples/ai-sales/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
44
"outDir": "dist",
5-
"rootDir": "src"
5+
"rootDir": "src",
6+
"module": "ES2020",
7+
"moduleResolution": "bundler"
68
},
79
"include": ["src/**/*"],
810
"exclude": ["node_modules", "dist"]

examples/ai-support/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"compilerOptions": {
44
"outDir": "dist",
55
"rootDir": "src",
6+
"module": "ES2020",
67
"moduleResolution": "bundler"
78
},
89
"include": ["src/**/*"],

examples/plugin-bi/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
44
"outDir": "./dist",
5-
"rootDir": "."
5+
"rootDir": ".",
6+
"module": "ES2020",
7+
"moduleResolution": "bundler"
68
},
79
"include": ["src/**/*", "objectstack.config.ts"]
810
}

packages/client/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"compilerOptions": {
33
"target": "ES2020",
4-
"module": "commonjs",
4+
"module": "ES2020",
5+
"moduleResolution": "bundler",
56
"declaration": true,
67
"outDir": "./dist",
78
"strict": true,

packages/driver-memory/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"compilerOptions": {
33
"target": "ES2020",
4-
"module": "commonjs",
4+
"module": "ES2020",
5+
"moduleResolution": "bundler",
56
"declaration": true,
67
"outDir": "./dist",
78
"strict": true,

packages/objectql/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"exclude": ["node_modules", "dist"],
55
"compilerOptions": {
66
"outDir": "dist",
7-
"rootDir": "src"
7+
"rootDir": "src",
8+
"module": "ES2020",
9+
"moduleResolution": "bundler"
810
}
911
}

packages/runtime/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"compilerOptions": {
33
"target": "ES2020",
4-
"module": "commonjs",
4+
"module": "ES2020",
5+
"moduleResolution": "bundler",
56
"declaration": true,
67
"outDir": "./dist",
78
"strict": true,

0 commit comments

Comments
 (0)