From 0d99e31489c301be456ee690134b13f988030788 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Wed, 19 Jun 2024 11:41:54 -0700 Subject: [PATCH] Revert "Fix incorrect condition of noLib (#58867)" This reverts commit 4239025fa3b8254b826c98997a9844cdd61e99ab. --- src/compiler/program.ts | 2 +- src/testRunner/unittests/tsc/incremental.ts | 26 -- .../with-config-with-redirection.js | 10 +- .../tsbuild/libraryResolution/with-config.js | 10 +- .../with-config-with-redirection.js | 10 +- .../libraryResolution/with-config.js | 10 +- .../tsc/incremental/when-noLib-toggles.js | 267 ------------------ .../with-config-with-redirection.js | 2 +- .../tsc/libraryResolution/with-config.js | 2 +- .../with-config-with-redirection.js | 4 +- .../tscWatch/libraryResolution/with-config.js | 4 +- .../without-config-with-redirection.js | 4 +- .../libraryResolution/without-config.js | 4 +- 13 files changed, 35 insertions(+), 320 deletions(-) delete mode 100644 tests/baselines/reference/tsc/incremental/when-noLib-toggles.js diff --git a/src/compiler/program.ts b/src/compiler/program.ts index f41919a28ac44..7410d46298b77 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -2777,7 +2777,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg return true; } - if (options.noLib) { + if (!options.noLib) { return false; } diff --git a/src/testRunner/unittests/tsc/incremental.ts b/src/testRunner/unittests/tsc/incremental.ts index 0052a206cf0de..34c16d3197c25 100644 --- a/src/testRunner/unittests/tsc/incremental.ts +++ b/src/testRunner/unittests/tsc/incremental.ts @@ -676,30 +676,4 @@ console.log(a);`, verify(/*withAlias*/ AliasType.SameFile, /*preserveConstEnums*/ true); verify(/*withAlias*/ AliasType.DifferentFile, /*preserveConstEnums*/ true); }); - - verifyTsc({ - scenario: "incremental", - subScenario: "when noLib toggles", - fs: () => - loadProjectFromFiles({ - "/src/a.d.ts": `declare const a = "hello";`, - "/src/b.ts": `const b = 10;`, - "/src/tsconfig.json": jsonToReadableText({ - compilerOptions: { - declaration: true, - incremental: true, - lib: ["es6"], - }, - }), - "/lib/lib.es2015.d.ts": libContent, - }), - commandLineArgs: ["-p", "/src/tsconfig.json"], - edits: [ - { - ...noChangeRun, - commandLineArgs: ["-p", "/src/tsconfig.json", "--noLib"], - }, - ], - baselinePrograms: true, - }); }); diff --git a/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js index 398b621b1de77..3458fb16b2c49 100644 --- a/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js @@ -442,6 +442,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts (used version) /home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) /home/src/projects/project1/core.d.ts (used version) /home/src/projects/project1/file.ts (computed .d.ts during emit) /home/src/projects/project1/file2.ts (computed .d.ts during emit) @@ -449,7 +450,6 @@ Shape signatures in builder refreshed for:: /home/src/projects/project1/utils.d.ts (used version) /home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) /home/src/projects/node_modules/@typescript/lib-es5/index.d.ts (used version) -/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) Program root files: [ "/home/src/projects/project2/index.ts", @@ -481,9 +481,9 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /home/src/projects/node_modules/@typescript/lib-es5/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) /home/src/projects/project2/index.ts (computed .d.ts during emit) /home/src/projects/project2/utils.d.ts (used version) -/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) Program root files: [ "/home/src/projects/project3/index.ts", @@ -515,9 +515,9 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /home/src/projects/node_modules/@typescript/lib-es5/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) /home/src/projects/project3/index.ts (computed .d.ts during emit) /home/src/projects/project3/utils.d.ts (used version) -/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) Program root files: [ "/home/src/projects/project4/index.ts", @@ -552,10 +552,10 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts (used version) -/home/src/projects/project4/index.ts (computed .d.ts during emit) -/home/src/projects/project4/utils.d.ts (used version) /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts (used version) +/home/src/projects/project4/index.ts (computed .d.ts during emit) +/home/src/projects/project4/utils.d.ts (used version) //// [/home/src/projects/project1/file.d.ts] diff --git a/tests/baselines/reference/tsbuild/libraryResolution/with-config.js b/tests/baselines/reference/tsbuild/libraryResolution/with-config.js index 1e8a07c34f3aa..c3633b71f806e 100644 --- a/tests/baselines/reference/tsbuild/libraryResolution/with-config.js +++ b/tests/baselines/reference/tsbuild/libraryResolution/with-config.js @@ -457,6 +457,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /home/src/lib/lib.es5.d.ts (used version) +/home/src/lib/lib.dom.d.ts (used version) /home/src/lib/lib.webworker.d.ts (used version) /home/src/lib/lib.scripthost.d.ts (used version) /home/src/projects/project1/core.d.ts (used version) @@ -465,7 +466,6 @@ Shape signatures in builder refreshed for:: /home/src/projects/project1/index.ts (computed .d.ts during emit) /home/src/projects/project1/utils.d.ts (used version) /home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) -/home/src/lib/lib.dom.d.ts (used version) Program root files: [ "/home/src/projects/project2/index.ts", @@ -497,9 +497,9 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /home/src/lib/lib.es5.d.ts (used version) +/home/src/lib/lib.dom.d.ts (used version) /home/src/projects/project2/index.ts (computed .d.ts during emit) /home/src/projects/project2/utils.d.ts (used version) -/home/src/lib/lib.dom.d.ts (used version) Program root files: [ "/home/src/projects/project3/index.ts", @@ -531,9 +531,9 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /home/src/lib/lib.es5.d.ts (used version) +/home/src/lib/lib.dom.d.ts (used version) /home/src/projects/project3/index.ts (computed .d.ts during emit) /home/src/projects/project3/utils.d.ts (used version) -/home/src/lib/lib.dom.d.ts (used version) Program root files: [ "/home/src/projects/project4/index.ts", @@ -568,10 +568,10 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /home/src/lib/lib.esnext.d.ts (used version) -/home/src/projects/project4/index.ts (computed .d.ts during emit) -/home/src/projects/project4/utils.d.ts (used version) /home/src/lib/lib.dom.d.ts (used version) /home/src/lib/lib.webworker.d.ts (used version) +/home/src/projects/project4/index.ts (computed .d.ts during emit) +/home/src/projects/project4/utils.d.ts (used version) //// [/home/src/projects/project1/file.d.ts] diff --git a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js index 5471f68b606a2..cd1481045a688 100644 --- a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js @@ -894,6 +894,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts (used version) /home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) /home/src/projects/project1/core.d.ts (used version) /home/src/projects/project1/file.ts (computed .d.ts during emit) /home/src/projects/project1/file2.ts (computed .d.ts during emit) @@ -901,7 +902,6 @@ Shape signatures in builder refreshed for:: /home/src/projects/project1/utils.d.ts (used version) /home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) /home/src/projects/node_modules/@typescript/lib-es5/index.d.ts (used version) -/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) Program root files: [ "/home/src/projects/project2/index.ts", @@ -935,9 +935,9 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /home/src/projects/node_modules/@typescript/lib-es5/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) /home/src/projects/project2/index.ts (computed .d.ts during emit) /home/src/projects/project2/utils.d.ts (used version) -/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) Program root files: [ "/home/src/projects/project3/index.ts", @@ -971,9 +971,9 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /home/src/projects/node_modules/@typescript/lib-es5/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) /home/src/projects/project3/index.ts (computed .d.ts during emit) /home/src/projects/project3/utils.d.ts (used version) -/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) Program root files: [ "/home/src/projects/project4/index.ts", @@ -1010,9 +1010,9 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts (used version) -/home/src/projects/project4/index.ts (computed .d.ts during emit) -/home/src/projects/project4/utils.d.ts (used version) /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts (used version) +/home/src/projects/project4/index.ts (computed .d.ts during emit) +/home/src/projects/project4/utils.d.ts (used version) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js index b5ad77dbc5905..fcce8c8fc9246 100644 --- a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js +++ b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js @@ -909,6 +909,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /home/src/lib/lib.es5.d.ts (used version) +/home/src/lib/lib.dom.d.ts (used version) /home/src/lib/lib.webworker.d.ts (used version) /home/src/lib/lib.scripthost.d.ts (used version) /home/src/projects/project1/core.d.ts (used version) @@ -917,7 +918,6 @@ Shape signatures in builder refreshed for:: /home/src/projects/project1/index.ts (computed .d.ts during emit) /home/src/projects/project1/utils.d.ts (used version) /home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) -/home/src/lib/lib.dom.d.ts (used version) Program root files: [ "/home/src/projects/project2/index.ts", @@ -951,9 +951,9 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /home/src/lib/lib.es5.d.ts (used version) +/home/src/lib/lib.dom.d.ts (used version) /home/src/projects/project2/index.ts (computed .d.ts during emit) /home/src/projects/project2/utils.d.ts (used version) -/home/src/lib/lib.dom.d.ts (used version) Program root files: [ "/home/src/projects/project3/index.ts", @@ -987,9 +987,9 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /home/src/lib/lib.es5.d.ts (used version) +/home/src/lib/lib.dom.d.ts (used version) /home/src/projects/project3/index.ts (computed .d.ts during emit) /home/src/projects/project3/utils.d.ts (used version) -/home/src/lib/lib.dom.d.ts (used version) Program root files: [ "/home/src/projects/project4/index.ts", @@ -1026,9 +1026,9 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /home/src/lib/lib.esnext.d.ts (used version) -/home/src/projects/project4/index.ts (computed .d.ts during emit) -/home/src/projects/project4/utils.d.ts (used version) /home/src/lib/lib.dom.d.ts (used version) /home/src/lib/lib.webworker.d.ts (used version) +/home/src/projects/project4/index.ts (computed .d.ts during emit) +/home/src/projects/project4/utils.d.ts (used version) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tsc/incremental/when-noLib-toggles.js b/tests/baselines/reference/tsc/incremental/when-noLib-toggles.js deleted file mode 100644 index f143d7bb7aacb..0000000000000 --- a/tests/baselines/reference/tsc/incremental/when-noLib-toggles.js +++ /dev/null @@ -1,267 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/lib/lib.es2015.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/a.d.ts] -declare const a = "hello"; - -//// [/src/b.ts] -const b = 10; - -//// [/src/tsconfig.json] -{ - "compilerOptions": { - "declaration": true, - "incremental": true, - "lib": [ - "es6" - ] - } -} - - - -Output:: -/lib/tsc -p /src/tsconfig.json -exitCode:: ExitStatus.Success -Program root files: [ - "/src/a.d.ts", - "/src/b.ts" -] -Program options: { - "declaration": true, - "incremental": true, - "lib": [ - "lib.es2015.d.ts" - ], - "project": "/src/tsconfig.json", - "configFilePath": "/src/tsconfig.json" -} -Program structureReused: Not -Program files:: -/lib/lib.es2015.d.ts -/src/a.d.ts -/src/b.ts - -Semantic diagnostics in builder refreshed for:: -/lib/lib.es2015.d.ts -/src/a.d.ts -/src/b.ts - -Shape signatures in builder refreshed for:: -/lib/lib.es2015.d.ts (used version) -/src/a.d.ts (used version) -/src/b.ts (computed .d.ts during emit) - - -//// [/src/b.d.ts] -declare const b = 10; - - -//// [/src/b.js] -var b = 10; - - -//// [/src/tsconfig.tsbuildinfo] -{"fileNames":["../lib/lib.es2015.d.ts","./a.d.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-5371488691-declare const a = \"hello\";","affectsGlobalScope":true},{"version":"2387014439-const b = 10;","signature":"-1009346399-declare const b = 10;\n","affectsGlobalScope":true}],"root":[2,3],"options":{"declaration":true},"version":"FakeTSVersion"} - -//// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "fileNames": [ - "../lib/lib.es2015.d.ts", - "./a.d.ts", - "./b.ts" - ], - "fileInfos": { - "../lib/lib.es2015.d.ts": { - "original": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true - }, - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true - }, - "./a.d.ts": { - "original": { - "version": "-5371488691-declare const a = \"hello\";", - "affectsGlobalScope": true - }, - "version": "-5371488691-declare const a = \"hello\";", - "signature": "-5371488691-declare const a = \"hello\";", - "affectsGlobalScope": true - }, - "./b.ts": { - "original": { - "version": "2387014439-const b = 10;", - "signature": "-1009346399-declare const b = 10;\n", - "affectsGlobalScope": true - }, - "version": "2387014439-const b = 10;", - "signature": "-1009346399-declare const b = 10;\n", - "affectsGlobalScope": true - } - }, - "root": [ - [ - 2, - "./a.d.ts" - ], - [ - 3, - "./b.ts" - ] - ], - "options": { - "declaration": true - }, - "version": "FakeTSVersion", - "size": 819 -} - - - -Change:: no-change-run -Input:: - - -Output:: -/lib/tsc -p /src/tsconfig.json --noLib -error TS2318: Cannot find global type 'Array'. - -error TS2318: Cannot find global type 'Boolean'. - -error TS2318: Cannot find global type 'Function'. - -error TS2318: Cannot find global type 'IArguments'. - -error TS2318: Cannot find global type 'Number'. - -error TS2318: Cannot find global type 'Object'. - -error TS2318: Cannot find global type 'RegExp'. - -error TS2318: Cannot find global type 'String'. - -src/tsconfig.json:5:5 - error TS5053: Option 'lib' cannot be specified with option 'noLib'. - -5 "lib": [ -   ~~~~~ - - -Found 9 errors in the same file, starting at: src/tsconfig.json:5 - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -Program root files: [ - "/src/a.d.ts", - "/src/b.ts" -] -Program options: { - "declaration": true, - "incremental": true, - "lib": [ - "lib.es2015.d.ts" - ], - "project": "/src/tsconfig.json", - "noLib": true, - "configFilePath": "/src/tsconfig.json" -} -Program structureReused: Not -Program files:: -/src/a.d.ts -/src/b.ts - -No cached semantic diagnostics in the builder:: - -Shape signatures in builder refreshed for:: -/src/a.d.ts (used version) -/src/b.ts (computed .d.ts) - - -//// [/src/b.d.ts] file written with same contents -//// [/src/b.js] file written with same contents -//// [/src/tsconfig.tsbuildinfo] -{"fileNames":["./a.d.ts","./b.ts"],"fileInfos":[{"version":"-5371488691-declare const a = \"hello\";","affectsGlobalScope":true},{"version":"2387014439-const b = 10;","signature":"-1009346399-declare const b = 10;\n","affectsGlobalScope":true}],"root":[1,2],"options":{"declaration":true},"semanticDiagnosticsPerFile":[1,2],"version":"FakeTSVersion"} - -//// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "fileNames": [ - "./a.d.ts", - "./b.ts" - ], - "fileInfos": { - "./a.d.ts": { - "original": { - "version": "-5371488691-declare const a = \"hello\";", - "affectsGlobalScope": true - }, - "version": "-5371488691-declare const a = \"hello\";", - "signature": "-5371488691-declare const a = \"hello\";", - "affectsGlobalScope": true - }, - "./b.ts": { - "original": { - "version": "2387014439-const b = 10;", - "signature": "-1009346399-declare const b = 10;\n", - "affectsGlobalScope": true - }, - "version": "2387014439-const b = 10;", - "signature": "-1009346399-declare const b = 10;\n", - "affectsGlobalScope": true - } - }, - "root": [ - [ - 1, - "./a.d.ts" - ], - [ - 2, - "./b.ts" - ] - ], - "options": { - "declaration": true - }, - "semanticDiagnosticsPerFile": [ - [ - "./a.d.ts", - "not cached" - ], - [ - "./b.ts", - "not cached" - ] - ], - "version": "FakeTSVersion", - "size": 350 -} - diff --git a/tests/baselines/reference/tsc/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tsc/libraryResolution/with-config-with-redirection.js index 35d03cae6799a..9d33ed99912cd 100644 --- a/tests/baselines/reference/tsc/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tsc/libraryResolution/with-config-with-redirection.js @@ -331,6 +331,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts (used version) /home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) /home/src/projects/project1/core.d.ts (used version) /home/src/projects/project1/file.ts (computed .d.ts during emit) /home/src/projects/project1/file2.ts (computed .d.ts during emit) @@ -338,7 +339,6 @@ Shape signatures in builder refreshed for:: /home/src/projects/project1/utils.d.ts (used version) /home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) /home/src/projects/node_modules/@typescript/lib-es5/index.d.ts (used version) -/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) //// [/home/src/projects/project1/file.d.ts] diff --git a/tests/baselines/reference/tsc/libraryResolution/with-config.js b/tests/baselines/reference/tsc/libraryResolution/with-config.js index 805104d081fbe..eca7f112c6756 100644 --- a/tests/baselines/reference/tsc/libraryResolution/with-config.js +++ b/tests/baselines/reference/tsc/libraryResolution/with-config.js @@ -335,6 +335,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /home/src/lib/lib.es5.d.ts (used version) +/home/src/lib/lib.dom.d.ts (used version) /home/src/lib/lib.webworker.d.ts (used version) /home/src/lib/lib.scripthost.d.ts (used version) /home/src/projects/project1/core.d.ts (used version) @@ -343,7 +344,6 @@ Shape signatures in builder refreshed for:: /home/src/projects/project1/index.ts (computed .d.ts during emit) /home/src/projects/project1/utils.d.ts (used version) /home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) -/home/src/lib/lib.dom.d.ts (used version) //// [/home/src/projects/project1/file.d.ts] diff --git a/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js index 0b3d485734c2a..ad9ceac0e9e8f 100644 --- a/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js @@ -531,6 +531,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts (used version) /home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) /home/src/projects/project1/core.d.ts (used version) /home/src/projects/project1/file.ts (computed .d.ts during emit) /home/src/projects/project1/file2.ts (computed .d.ts during emit) @@ -538,7 +539,6 @@ Shape signatures in builder refreshed for:: /home/src/projects/project1/utils.d.ts (used version) /home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) /home/src/projects/node_modules/@typescript/lib-es5/index.d.ts (used version) -/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) exitCode:: ExitStatus.undefined @@ -2436,6 +2436,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /home/src/lib/lib.webworker.d.ts (used version) +/home/src/lib/lib.dom.d.ts (used version) /home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts (used version) /home/src/projects/project1/file.ts (computed .d.ts) /home/src/projects/project1/file2.ts (computed .d.ts) @@ -2731,6 +2732,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts (used version) +/home/src/lib/lib.dom.d.ts (used version) /home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts (used version) /home/src/projects/project1/file.ts (computed .d.ts) /home/src/projects/project1/file2.ts (computed .d.ts) diff --git a/tests/baselines/reference/tscWatch/libraryResolution/with-config.js b/tests/baselines/reference/tscWatch/libraryResolution/with-config.js index d3c89775e9e6d..9a4f6c5dfdce3 100644 --- a/tests/baselines/reference/tscWatch/libraryResolution/with-config.js +++ b/tests/baselines/reference/tscWatch/libraryResolution/with-config.js @@ -535,6 +535,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /home/src/lib/lib.es5.d.ts (used version) +/home/src/lib/lib.dom.d.ts (used version) /home/src/lib/lib.webworker.d.ts (used version) /home/src/lib/lib.scripthost.d.ts (used version) /home/src/projects/project1/core.d.ts (used version) @@ -543,7 +544,6 @@ Shape signatures in builder refreshed for:: /home/src/projects/project1/index.ts (computed .d.ts during emit) /home/src/projects/project1/utils.d.ts (used version) /home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) -/home/src/lib/lib.dom.d.ts (used version) exitCode:: ExitStatus.undefined @@ -2417,6 +2417,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts (used version) /home/src/lib/lib.scripthost.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) /home/src/projects/project1/file.ts (computed .d.ts) /home/src/projects/project1/file2.ts (computed .d.ts) /home/src/projects/project1/index.ts (computed .d.ts) @@ -2723,6 +2724,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /home/src/lib/lib.webworker.d.ts (used version) /home/src/lib/lib.scripthost.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) /home/src/projects/project1/file.ts (computed .d.ts) /home/src/projects/project1/file2.ts (computed .d.ts) /home/src/projects/project1/index.ts (computed .d.ts) diff --git a/tests/baselines/reference/tscWatch/libraryResolution/without-config-with-redirection.js b/tests/baselines/reference/tscWatch/libraryResolution/without-config-with-redirection.js index 93f2a70c74cc5..8c888d505b6c3 100644 --- a/tests/baselines/reference/tscWatch/libraryResolution/without-config-with-redirection.js +++ b/tests/baselines/reference/tscWatch/libraryResolution/without-config-with-redirection.js @@ -362,13 +362,13 @@ project1/file2.ts Shape signatures in builder refreshed for:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts (used version) /home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) /home/src/projects/project1/core.d.ts (used version) /home/src/projects/project1/utils.d.ts (used version) /home/src/projects/project1/file.ts (used version) /home/src/projects/project1/index.ts (used version) /home/src/projects/project1/file2.ts (used version) /home/src/projects/node_modules/@typescript/lib-es5/index.d.ts (used version) -/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) exitCode:: ExitStatus.undefined @@ -1106,6 +1106,7 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/lib/lib.webworker.d.ts (used version) /home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) /home/src/projects/project1/utils.d.ts (used version) /home/src/projects/project1/file.ts (computed .d.ts) /home/src/projects/project1/index.ts (computed .d.ts) @@ -1267,6 +1268,7 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts (used version) /home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) /home/src/projects/project1/utils.d.ts (used version) /home/src/projects/project1/file.ts (computed .d.ts) /home/src/projects/project1/index.ts (computed .d.ts) diff --git a/tests/baselines/reference/tscWatch/libraryResolution/without-config.js b/tests/baselines/reference/tscWatch/libraryResolution/without-config.js index 7fe78260f9775..ca28625b0b756 100644 --- a/tests/baselines/reference/tscWatch/libraryResolution/without-config.js +++ b/tests/baselines/reference/tscWatch/libraryResolution/without-config.js @@ -362,6 +362,7 @@ project1/file2.ts Shape signatures in builder refreshed for:: /home/src/lib/lib.es5.d.ts (used version) +/home/src/lib/lib.dom.d.ts (used version) /home/src/lib/lib.webworker.d.ts (used version) /home/src/lib/lib.scripthost.d.ts (used version) /home/src/projects/project1/core.d.ts (used version) @@ -369,7 +370,6 @@ Shape signatures in builder refreshed for:: /home/src/projects/project1/file.ts (used version) /home/src/projects/project1/index.ts (used version) /home/src/projects/project1/file2.ts (used version) -/home/src/lib/lib.dom.d.ts (used version) exitCode:: ExitStatus.undefined @@ -1102,6 +1102,7 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts (used version) +/home/src/lib/lib.dom.d.ts (used version) /home/src/lib/lib.scripthost.d.ts (used version) /home/src/projects/project1/utils.d.ts (used version) /home/src/projects/project1/file.ts (computed .d.ts) @@ -1273,6 +1274,7 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/lib/lib.webworker.d.ts (used version) +/home/src/lib/lib.dom.d.ts (used version) /home/src/lib/lib.scripthost.d.ts (used version) /home/src/projects/project1/utils.d.ts (used version) /home/src/projects/project1/file.ts (computed .d.ts)