Skip to content

Commit 81b0341

Browse files
committed
build: Remove dom types from main tsconfig
1 parent c69440a commit 81b0341

File tree

18 files changed

+27
-9
lines changed

18 files changed

+27
-9
lines changed

dev-packages/node-integration-tests/tsconfig.test.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"include": ["suites/**/*.ts"],
55

66
"compilerOptions": {
7+
// Although this seems wrong to include `DOM` here, it's necessary to make
8+
// global fetch available in tests in lower Node versions.
9+
"lib": ["DOM", "ES2018"],
710
// should include all types from `./tsconfig.json` plus types for all test frameworks used
811
"types": ["node", "jest"]
912

packages/angular/tsconfig.ngc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"compilerOptions": {
88
"target": "es2018",
99
"declarationMap": false,
10-
"lib": ["dom", "es2018"],
10+
"lib": ["DOM", "ES2018"],
1111
"baseUrl": "./"
1212
},
1313
"angularCompilerOptions": {

packages/browser-utils/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"include": ["src/**/*"],
55

66
"compilerOptions": {
7-
// package-specific options
7+
"lib": ["DOM", "ES2018"],
88
}
99
}

packages/browser/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"include": ["src/**/*", "test/loader.js"],
55

66
"compilerOptions": {
7-
// package-specific options
7+
"lib": ["DOM", "ES2018"],
88
}
99
}

packages/core/tsconfig.test.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"include": ["test/**/*"],
55

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

packages/ember/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
44
"target": "es2022",
5+
"lib": ["DOM", "ES2022"],
56
"allowJs": true,
67
"moduleResolution": "node",
78
"allowSyntheticDefaultImports": true,

packages/gatsby/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"include": ["src/**/*"],
55

66
"compilerOptions": {
7+
"lib": ["DOM", "ES2018"],
78
// package-specific options
89
"jsx": "react"
910
}

packages/react/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"include": ["src/**/*"],
55

66
"compilerOptions": {
7+
"lib": ["DOM", "ES2018"],
78
// package-specific options
89
"esModuleInterop": true,
910
"jsx": "react"

packages/remix/tsconfig.test.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"include": ["test/**/*", "vitest.config.ts"],
55

66
"compilerOptions": {
7+
"lib": ["DOM", "ES2018"],
78
"types": ["node", "jest"],
89
"esModuleInterop": true
910
}

packages/replay-canvas/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
4+
"lib": ["DOM", "ES2018"],
45
"module": "esnext"
56
},
67
"include": ["src/**/*.ts"]

0 commit comments

Comments
 (0)