Skip to content

Commit

Permalink
build: Remove dom types from main tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiPrasad committed Jul 9, 2024
1 parent c69440a commit 85eae4e
Show file tree
Hide file tree
Showing 16 changed files with 23 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/angular/tsconfig.ngc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"compilerOptions": {
"target": "es2018",
"declarationMap": false,
"lib": ["dom", "es2018"],
"lib": ["DOM", "ES2018"],
"baseUrl": "./"
},
"angularCompilerOptions": {
Expand Down
2 changes: 1 addition & 1 deletion packages/browser-utils/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"include": ["src/**/*"],

"compilerOptions": {
// package-specific options
"lib": ["DOM", "ES2018"],
}
}
2 changes: 1 addition & 1 deletion packages/browser/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"include": ["src/**/*", "test/loader.js"],

"compilerOptions": {
// package-specific options
"lib": ["DOM", "ES2018"],
}
}
1 change: 1 addition & 0 deletions packages/core/tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"include": ["test/**/*"],

"compilerOptions": {
"lib": ["DOM", "ES2018"],
// should include all types from `./tsconfig.json` plus types for all test frameworks used
"types": ["node", "jest"]

Expand Down
1 change: 1 addition & 0 deletions packages/ember/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"target": "es2022",
"lib": ["DOM", "ES2022"],
"allowJs": true,
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
Expand Down
1 change: 1 addition & 0 deletions packages/gatsby/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"include": ["src/**/*"],

"compilerOptions": {
"lib": ["DOM", "ES2018"],
// package-specific options
"jsx": "react"
}
Expand Down
1 change: 1 addition & 0 deletions packages/react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"include": ["src/**/*"],

"compilerOptions": {
"lib": ["DOM", "ES2018"],
// package-specific options
"esModuleInterop": true,
"jsx": "react"
Expand Down
1 change: 1 addition & 0 deletions packages/replay-canvas/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"lib": ["DOM", "ES2018"],
"module": "esnext"
},
"include": ["src/**/*.ts"]
Expand Down
1 change: 1 addition & 0 deletions packages/replay-canvas/tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"include": ["test/**/*.ts", "jest.config.ts", "jest.setup.ts"],

"compilerOptions": {
"lib": ["DOM", "ES2018"],
"types": ["node", "jest"],
"esModuleInterop": true,
"allowJs": true,
Expand Down
1 change: 1 addition & 0 deletions packages/replay-internal/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"lib": ["DOM", "ES2018"],
"module": "esnext"
},
"include": ["src/**/*.ts"]
Expand Down
4 changes: 3 additions & 1 deletion packages/solid/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@

"include": ["src/**/*"],

"compilerOptions": {}
"compilerOptions": {
"lib": ["DOM", "ES2018"],
}
}
4 changes: 3 additions & 1 deletion packages/svelte/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@

"include": ["src/**/*"],

"compilerOptions": {}
"compilerOptions": {
"lib": ["DOM", "ES2018"],
}
}
2 changes: 1 addition & 1 deletion packages/typescript/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"importHelpers": true,
"inlineSources": true,
"isolatedModules": true,
"lib": ["es2018", "dom"],
"lib": ["ES2018"],
"moduleResolution": "node",
"noErrorTruncation": true,
"noFallthroughCasesInSwitch": true,
Expand Down
5 changes: 4 additions & 1 deletion packages/vercel-edge/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"include": ["src/**/*"],

"compilerOptions": {
// package-specific options
// Note: using `dom` here is inaccurate for the vercel-edge runtime, but needed
// because @edge-runtime/types does not type things like fetch or RequestInit
// ref: https://github.com/vercel/edge-runtime/issues/506
"lib": ["DOM", "ES2018"],
"types": ["@edge-runtime/types"]
}
}
2 changes: 1 addition & 1 deletion packages/vue/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"include": ["src/**/*"],

"compilerOptions": {
// package-specific options
"lib": ["DOM", "ES2018"],
}
}
2 changes: 1 addition & 1 deletion packages/wasm/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"include": ["src/**/*"],

"compilerOptions": {
// package-specific options
"lib": ["DOM", "ES2018"],
}
}

0 comments on commit 85eae4e

Please sign in to comment.