Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions dev-packages/node-integration-tests/tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"include": ["suites/**/*.ts"],

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

Expand Down
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/remix/tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"include": ["test/**/*", "vitest.config.ts"],

"compilerOptions": {
"lib": ["DOM", "ES2018"],
"types": ["node", "jest"],
"esModuleInterop": true
}
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"],
}
}