diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index 34adf6e49b7da..bcc771fe6fe24 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -321,8 +321,9 @@ function hasSameKeys( function createBuilderProgramState( newProgram: Program, oldState: Readonly | undefined, + disableUseFileVersionAsSignature?: boolean, ): BuilderProgramState { - const state = BuilderState.create(newProgram, oldState, /*disableUseFileVersionAsSignature*/ false) as BuilderProgramState; + const state = BuilderState.create(newProgram, oldState, !!disableUseFileVersionAsSignature) as BuilderProgramState; state.program = newProgram; const compilerOptions = newProgram.getCompilerOptions(); state.compilerOptions = compilerOptions; @@ -1682,7 +1683,7 @@ export function createBuilderProgram( return oldProgram; } - const state = createBuilderProgramState(newProgram, oldState); + const state = createBuilderProgramState(newProgram, oldState, host.disableUseFileVersionAsSignature); newProgram.getBuildInfo = () => getBuildInfo(toBuilderProgramStateWithDefinedProgram(state)); // To ensure that we arent storing any references to old program or new program without state diff --git a/src/compiler/builderPublic.ts b/src/compiler/builderPublic.ts index 7a0265f84a579..a7f240fd1f099 100644 --- a/src/compiler/builderPublic.ts +++ b/src/compiler/builderPublic.ts @@ -35,6 +35,14 @@ export interface BuilderProgramHost { * @internal */ storeSignatureInfo?: boolean; + /** + * When true, the builder always computes .d.ts shape signatures for source files instead + * of falling back to the file version (text hash) on the initial program. This makes + * change detection precise from the first edit onward — at the cost of computing + * declaration signatures during the initial build — and avoids invalidating a file's + * entire dependent closure on the first edit after a fresh build. + */ + disableUseFileVersionAsSignature?: boolean; } /** @internal */ diff --git a/src/compiler/builderState.ts b/src/compiler/builderState.ts index 625a64e266fee..be0704471e9fb 100644 --- a/src/compiler/builderState.ts +++ b/src/compiler/builderState.ts @@ -57,6 +57,7 @@ export enum SignatureInfo { ComputedDts, StoredSignatureAtEmit, UsedVersion, + KeptExistingSignature, } /** @internal */ export interface BuilderState { @@ -450,8 +451,20 @@ export namespace BuilderState { } // Default is to use file version as signature if (latestSignature === undefined) { - latestSignature = sourceFile.version; - if (host.storeSignatureInfo) (state.signatureInfo ??= new Map()).set(sourceFile.resolvedPath, SignatureInfo.UsedVersion); + // Do not overwrite a previously computed .d.ts signature with the file version: + // replacing it would make the next comparison against a freshly computed + // signature a guaranteed mismatch, falsely invalidating the file's entire + // dependent closure even for edits that do not change the file's shape. + // Keep the stored signature instead; use the version only when no computed + // signature exists. + if (!sourceFile.isDeclarationFile && !state.useFileVersionAsSignature && prevSignature !== undefined && prevSignature !== sourceFile.version) { + latestSignature = prevSignature; + if (host.storeSignatureInfo) (state.signatureInfo ??= new Map()).set(sourceFile.resolvedPath, SignatureInfo.KeptExistingSignature); + } + else { + latestSignature = sourceFile.version; + if (host.storeSignatureInfo) (state.signatureInfo ??= new Map()).set(sourceFile.resolvedPath, SignatureInfo.UsedVersion); + } } (state.oldSignatures ||= new Map()).set(sourceFile.resolvedPath, prevSignature || false); (state.hasCalledUpdateShapeSignature ||= new Set()).add(sourceFile.resolvedPath); diff --git a/src/testRunner/unittests/helpers/baseline.ts b/src/testRunner/unittests/helpers/baseline.ts index 97146d59b03cb..cf087c810baf6 100644 --- a/src/testRunner/unittests/helpers/baseline.ts +++ b/src/testRunner/unittests/helpers/baseline.ts @@ -105,6 +105,10 @@ function baselineProgram(baseline: string[], [program, builderProgram]: CommandL ts.Debug.assert(info?.version === info?.signature || !info?.signature); baseline.push(path + " (used version)"); break; + case ts.SignatureInfo.KeptExistingSignature: + ts.Debug.assert(info?.signature && info.signature !== info.version); + baseline.push(path + " (kept existing computed signature)"); + break; default: ts.Debug.assertNever(signatureInfo); } diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-discrepancies.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-discrepancies.js new file mode 100644 index 0000000000000..ac2c7962a28d1 --- /dev/null +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-discrepancies.js @@ -0,0 +1,20 @@ +0:: incremental-declaration-changes +*** Needs explanation +Incremental signature is neither dts signature nor file version for File:: ../index.ts +Incremental:: { + "original": { + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" + }, + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" +} +Clean:: { + "original": { + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", + "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" + }, + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", + "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" +} +Dts Signature:: "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" \ No newline at end of file diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules-discrepancies.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules-discrepancies.js new file mode 100644 index 0000000000000..ac2c7962a28d1 --- /dev/null +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules-discrepancies.js @@ -0,0 +1,20 @@ +0:: incremental-declaration-changes +*** Needs explanation +Incremental signature is neither dts signature nor file version for File:: ../index.ts +Incremental:: { + "original": { + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" + }, + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" +} +Clean:: { + "original": { + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", + "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" + }, + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", + "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" +} +Dts Signature:: "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" \ No newline at end of file diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js index 7644c17e15f69..d4535ec546cb8 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js @@ -316,7 +316,7 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" //// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.es6.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileIdsList":[[3,5],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":2},"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[[6,[{"start":97,"length":21,"messageText":"Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'.","category":1,"code":1323}]]],"version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.es6.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileIdsList":[[3,5],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":2},"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[[6,[{"start":97,"length":21,"messageText":"Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'.","category":1,"code":1323}]]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -379,10 +379,10 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" "../index.ts": { "original": { "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" }, "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" } }, "root": [ @@ -429,7 +429,7 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" ] ], "version": "FakeTSVersion", - "size": 2682 + "size": 2696 } diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js index 4c6610c43c906..f973f593c559a 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js @@ -317,7 +317,7 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" //// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.es6.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileIdsList":[[3,5],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":2},"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[[6,[{"start":97,"length":21,"messageText":"Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'.","category":1,"code":1323}]]],"version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.es6.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileIdsList":[[3,5],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},"-6956449754-export { default as bar } from './bar';\n",{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":2},"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[[6,[{"start":97,"length":21,"messageText":"Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'.","category":1,"code":1323}]]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -380,10 +380,10 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" "../index.ts": { "original": { "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" }, "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" } }, "root": [ @@ -430,7 +430,7 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" ] ], "version": "FakeTSVersion", - "size": 2682 + "size": 2696 } diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules-discrepancies.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules-discrepancies.js new file mode 100644 index 0000000000000..f1c58b6974926 --- /dev/null +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules-discrepancies.js @@ -0,0 +1,60 @@ +0:: incremental-declaration-changes +*** Needs explanation +Incremental signature is neither dts signature nor file version for File:: ../index.ts +Incremental:: { + "original": { + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" + }, + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" +} +Clean:: { + "original": { + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", + "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" + }, + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", + "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" +} +Dts Signature:: "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" +2:: incremental-declaration-changes +*** Needs explanation +Incremental signature is neither dts signature nor file version for File:: ../index.ts +Incremental:: { + "original": { + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" + }, + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" +} +Clean:: { + "original": { + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", + "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" + }, + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", + "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" +} +Dts Signature:: "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" +3:: Fix Error +*** Needs explanation +Incremental signature is neither dts signature nor file version for File:: ../index.ts +Incremental:: { + "original": { + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" + }, + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" +} +Clean:: { + "original": { + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", + "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" + }, + "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", + "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" +} +Dts Signature:: "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" \ No newline at end of file diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js index 9faa6673b2aaa..466ac4415f2eb 100644 --- a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js +++ b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js @@ -329,7 +329,7 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" //// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.es6.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileIdsList":[[3,5],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},{"version":"3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");","signature":"-6956449754-export { default as bar } from './bar';\n"},{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":2},"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[[5,[{"start":85,"length":7,"messageText":"Expected 0 arguments, but got 1.","category":1,"code":2554}]],[6,[{"start":97,"length":21,"messageText":"Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'.","category":1,"code":1323}]]],"version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.es6.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileIdsList":[[3,5],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},{"version":"3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");","signature":"-6956449754-export { default as bar } from './bar';\n"},{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":2},"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[[5,[{"start":85,"length":7,"messageText":"Expected 0 arguments, but got 1.","category":1,"code":2554}]],[6,[{"start":97,"length":21,"messageText":"Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'.","category":1,"code":1323}]]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -396,10 +396,10 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" "../index.ts": { "original": { "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" }, "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" } }, "root": [ @@ -458,7 +458,7 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" ] ], "version": "FakeTSVersion", - "size": 2923 + "size": 2937 } @@ -696,7 +696,7 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" //// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.es6.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileIdsList":[[3,5],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},{"version":"3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");","signature":"-6956449754-export { default as bar } from './bar';\n"},{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":2},"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[[5,[{"start":85,"length":7,"messageText":"Expected 0 arguments, but got 1.","category":1,"code":2554}]],[6,[{"start":97,"length":21,"messageText":"Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'.","category":1,"code":1323}]]],"version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.es6.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileIdsList":[[3,5],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},{"version":"3017320451-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar(\"hello\");","signature":"-6956449754-export { default as bar } from './bar';\n"},{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":2},"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[[5,[{"start":85,"length":7,"messageText":"Expected 0 arguments, but got 1.","category":1,"code":2554}]],[6,[{"start":97,"length":21,"messageText":"Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'.","category":1,"code":1323}]]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -763,10 +763,10 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" "../index.ts": { "original": { "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" }, "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" } }, "root": [ @@ -825,7 +825,7 @@ export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex" ] ], "version": "FakeTSVersion", - "size": 2923 + "size": 2937 } @@ -868,7 +868,7 @@ bar(); //// [/home/src/workspaces/project/obj/lazyIndex.d.ts] file written with same contents //// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] -{"fileNames":["../../../tslibs/ts/lib/lib.es6.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileIdsList":[[3,5],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},{"version":"-3721262293-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar();","signature":"-6956449754-export { default as bar } from './bar';\n"},{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":2},"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[[6,[{"start":97,"length":21,"messageText":"Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'.","category":1,"code":1323}]]],"version":"FakeTSVersion"} +{"fileNames":["../../../tslibs/ts/lib/lib.es6.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyindex.ts","../index.ts"],"fileIdsList":[[3,5],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"10075719182-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});\n","signature":"-1866892563-declare const _default: () => void;\nexport default _default;\n"},{"version":"-5105594088-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}\n","signature":"-23343356903-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n"},{"version":"-20910599262-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}\n","affectsGlobalScope":true},{"version":"-3721262293-export { default as bar } from './bar';\n\nimport { default as bar } from './bar';\nbar();","signature":"-6956449754-export { default as bar } from './bar';\n"},{"version":"6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n","signature":"-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n"}],"root":[[2,6]],"options":{"declaration":true,"outDir":"./","target":2},"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[[6,[{"start":97,"length":21,"messageText":"Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'.","category":1,"code":1323}]]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -935,10 +935,10 @@ bar(); "../index.ts": { "original": { "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" }, "version": "6186344161-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);\n", - "signature": "-4053129224-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n" + "signature": "-13696684486-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n" } }, "root": [ @@ -985,7 +985,7 @@ bar(); ] ], "version": "FakeTSVersion", - "size": 2811 + "size": 2825 } diff --git a/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-composite-discrepancies.js b/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-composite-discrepancies.js index ea95fe7cde94f..57d0f58b3cb04 100644 --- a/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-composite-discrepancies.js +++ b/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-composite-discrepancies.js @@ -392,14 +392,6 @@ IncrementalBuild: [ "./src/class.ts", "-9508063301-export declare class classC {\n prop: number;\n}\n" - ], - [ - "./src/directuse.ts", - "-3531856636-export {};\n" - ], - [ - "./src/indirectuse.ts", - "-3531856636-export {};\n" ] ], "latestChangedDtsFile": "FakeFileName", @@ -1061,14 +1053,6 @@ IncrementalBuild: [ "./src/class.ts", "-12157283604-export declare class classC {\n prop1: number;\n}\n" - ], - [ - "./src/directuse.ts", - "-3531856636-export {};\n" - ], - [ - "./src/indirectuse.ts", - "-3531856636-export {};\n" ] ], "latestChangedDtsFile": "FakeFileName", diff --git a/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-composite.js b/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-composite.js index 0478b12a94eb6..b3aa878eb623c 100644 --- a/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-composite.js +++ b/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-composite.js @@ -369,7 +369,7 @@ Found 3 errors. //// [/home/src/workspaces/project/tsconfig.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"emitSignatures":[[2,"-9508063301-export declare class classC {\n prop: number;\n}\n"],[4,"-3531856636-export {};\n"],[5,"-3531856636-export {};\n"]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"emitSignatures":[[2,"-9508063301-export declare class classC {\n prop: number;\n}\n"]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -417,12 +417,20 @@ Found 3 errors. "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/nochangefile.ts": { "original": { @@ -557,19 +565,11 @@ Found 3 errors. [ "./src/class.ts", "-9508063301-export declare class classC {\n prop: number;\n}\n" - ], - [ - "./src/directuse.ts", - "-3531856636-export {};\n" - ], - [ - "./src/indirectuse.ts", - "-3531856636-export {};\n" ] ], "latestChangedDtsFile": "./src/noChangeFileWithEmitSpecificError.d.ts", "version": "FakeTSVersion", - "size": 2703 + "size": 2743 } @@ -1297,7 +1297,7 @@ Found 1 error. //// [/home/src/workspaces/project/tsconfig.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"emitSignatures":[[2,"-12157283604-export declare class classC {\n prop1: number;\n}\n"],[4,"-3531856636-export {};\n"],[5,"-3531856636-export {};\n"]],"latestChangedDtsFile":"./src/class.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"emitSignatures":[[2,"-12157283604-export declare class classC {\n prop1: number;\n}\n"]],"latestChangedDtsFile":"./src/class.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1345,12 +1345,20 @@ Found 1 error. "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/nochangefile.ts": { "original": { @@ -1441,19 +1449,11 @@ Found 1 error. [ "./src/class.ts", "-12157283604-export declare class classC {\n prop1: number;\n}\n" - ], - [ - "./src/directuse.ts", - "-3531856636-export {};\n" - ], - [ - "./src/indirectuse.ts", - "-3531856636-export {};\n" ] ], "latestChangedDtsFile": "./src/class.d.ts", "version": "FakeTSVersion", - "size": 2113 + "size": 2153 } diff --git a/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-incremental-declaration.js b/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-incremental-declaration.js index 3497b03c2f9a3..e4d79eb16d85b 100644 --- a/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-incremental-declaration.js +++ b/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-incremental-declaration.js @@ -369,7 +369,7 @@ Found 3 errors. //// [/home/src/workspaces/project/tsconfig.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -417,12 +417,20 @@ Found 3 errors. "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/nochangefile.ts": { "original": { @@ -554,7 +562,7 @@ Found 3 errors. ] ], "version": "FakeTSVersion", - "size": 2482 + "size": 2584 } @@ -1287,7 +1295,7 @@ Found 1 error. //// [/home/src/workspaces/project/tsconfig.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1335,12 +1343,20 @@ Found 1 error. "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/nochangefile.ts": { "original": { @@ -1428,7 +1444,7 @@ Found 1 error. ] ], "version": "FakeTSVersion", - "size": 1918 + "size": 2020 } diff --git a/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-incremental.js b/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-incremental.js index 17014f3483d59..4986927bd8a27 100644 --- a/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-incremental.js +++ b/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-incremental.js @@ -535,7 +535,7 @@ Found 1 error. //// [/home/src/workspaces/project/src/directUse.js] file written with same contents //// [/home/src/workspaces/project/src/indirectUse.js] file written with same contents //// [/home/src/workspaces/project/tsconfig.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},"6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -583,12 +583,20 @@ Found 1 error. "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/nochangefile.ts": { "version": "6714567633-export function writeLog(s: string) {\n}", @@ -646,7 +654,7 @@ Found 1 error. ] ], "version": "FakeTSVersion", - "size": 1659 + "size": 1761 } @@ -812,7 +820,7 @@ export class classC { //// [/home/src/workspaces/project/src/indirectClass.js] file written with same contents //// [/home/src/workspaces/project/tsconfig.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},"6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -860,12 +868,20 @@ export class classC { "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/nochangefile.ts": { "version": "6714567633-export function writeLog(s: string) {\n}", @@ -967,7 +983,7 @@ export class classC { ] ], "version": "FakeTSVersion", - "size": 2223 + "size": 2325 } @@ -1186,7 +1202,7 @@ Found 1 error. //// [/home/src/workspaces/project/tsconfig.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,3],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},"6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,3],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1234,12 +1250,20 @@ Found 1 error. "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/nochangefile.ts": { "version": "6714567633-export function writeLog(s: string) {\n}", @@ -1307,7 +1331,7 @@ Found 1 error. ] ], "version": "FakeTSVersion", - "size": 1692 + "size": 1794 } @@ -1344,7 +1368,7 @@ export class classC { //// [/home/src/workspaces/project/src/indirectClass.js] file written with same contents //// [/home/src/workspaces/project/tsconfig.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},"6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1392,12 +1416,20 @@ export class classC { "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/nochangefile.ts": { "version": "6714567633-export function writeLog(s: string) {\n}", @@ -1455,7 +1487,7 @@ export class classC { ] ], "version": "FakeTSVersion", - "size": 1659 + "size": 1761 } diff --git a/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-with-initial-noEmit-composite-discrepancies.js b/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-with-initial-noEmit-composite-discrepancies.js index 6b7d4565e441d..a618433c8bcf7 100644 --- a/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-with-initial-noEmit-composite-discrepancies.js +++ b/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-with-initial-noEmit-composite-discrepancies.js @@ -130,14 +130,6 @@ IncrementalBuild: [ "./src/class.ts", "-12157283604-export declare class classC {\n prop1: number;\n}\n" - ], - [ - "./src/directuse.ts", - "-3531856636-export {};\n" - ], - [ - "./src/indirectuse.ts", - "-3531856636-export {};\n" ] ], "latestChangedDtsFile": "FakeFileName", diff --git a/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-with-initial-noEmit-composite.js b/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-with-initial-noEmit-composite.js index 7a87686d88353..bbc05c9bb7f22 100644 --- a/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-with-initial-noEmit-composite.js +++ b/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-with-initial-noEmit-composite.js @@ -707,7 +707,7 @@ Found 1 error. //// [/home/src/workspaces/project/tsconfig.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"emitSignatures":[[2,"-12157283604-export declare class classC {\n prop1: number;\n}\n"],[4,"-3531856636-export {};\n"],[5,"-3531856636-export {};\n"]],"latestChangedDtsFile":"./src/class.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"emitSignatures":[[2,"-12157283604-export declare class classC {\n prop1: number;\n}\n"]],"latestChangedDtsFile":"./src/class.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -755,12 +755,20 @@ Found 1 error. "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/nochangefile.ts": { "original": { @@ -851,19 +859,11 @@ Found 1 error. [ "./src/class.ts", "-12157283604-export declare class classC {\n prop1: number;\n}\n" - ], - [ - "./src/directuse.ts", - "-3531856636-export {};\n" - ], - [ - "./src/indirectuse.ts", - "-3531856636-export {};\n" ] ], "latestChangedDtsFile": "./src/class.d.ts", "version": "FakeTSVersion", - "size": 2113 + "size": 2153 } diff --git a/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-with-initial-noEmit-incremental-declaration.js b/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-with-initial-noEmit-incremental-declaration.js index 8e26f1a229f8b..d969c86418577 100644 --- a/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-with-initial-noEmit-incremental-declaration.js +++ b/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-with-initial-noEmit-incremental-declaration.js @@ -701,7 +701,7 @@ Found 1 error. //// [/home/src/workspaces/project/tsconfig.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -749,12 +749,20 @@ Found 1 error. "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/nochangefile.ts": { "original": { @@ -842,7 +850,7 @@ Found 1 error. ] ], "version": "FakeTSVersion", - "size": 1918 + "size": 2020 } diff --git a/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-with-initial-noEmit-incremental.js b/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-with-initial-noEmit-incremental.js index 2fff444bcd2e1..f7194f7b66041 100644 --- a/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-with-initial-noEmit-incremental.js +++ b/tests/baselines/reference/tsbuild/noEmit/multiFile/changes-with-initial-noEmit-incremental.js @@ -629,7 +629,7 @@ Found 1 error. //// [/home/src/workspaces/project/tsconfig.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,3],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},"6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,3],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -677,12 +677,20 @@ Found 1 error. "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/nochangefile.ts": { "version": "6714567633-export function writeLog(s: string) {\n}", @@ -750,7 +758,7 @@ Found 1 error. ] ], "version": "FakeTSVersion", - "size": 1692 + "size": 1794 } @@ -780,7 +788,7 @@ Found 1 error. //// [/home/src/workspaces/project/tsconfig.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},"6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -828,12 +836,20 @@ Found 1 error. "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/nochangefile.ts": { "version": "6714567633-export function writeLog(s: string) {\n}", @@ -891,7 +907,7 @@ Found 1 error. ] ], "version": "FakeTSVersion", - "size": 1659 + "size": 1761 } //// [/home/src/workspaces/project/src/class.js] diff --git a/tests/baselines/reference/tsc/cancellationToken/when-emitting-buildInfo.js b/tests/baselines/reference/tsc/cancellationToken/when-emitting-buildInfo.js index bb4aa6fbf6ed3..2c62d591663dd 100644 --- a/tests/baselines/reference/tsc/cancellationToken/when-emitting-buildInfo.js +++ b/tests/baselines/reference/tsc/cancellationToken/when-emitting-buildInfo.js @@ -501,7 +501,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.ts (computed .d.ts) /user/username/projects/myproject/b.ts (computed .d.ts) -/user/username/projects/myproject/a.ts (computed .d.ts during emit) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tsc/cancellationToken/when-using-state.js b/tests/baselines/reference/tsc/cancellationToken/when-using-state.js index 7001860d4047d..971853807a930 100644 --- a/tests/baselines/reference/tsc/cancellationToken/when-using-state.js +++ b/tests/baselines/reference/tsc/cancellationToken/when-using-state.js @@ -501,7 +501,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.ts (computed .d.ts) /user/username/projects/myproject/b.ts (computed .d.ts) -/user/username/projects/myproject/a.ts (computed .d.ts during emit) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-discrepancies.js b/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-discrepancies.js new file mode 100644 index 0000000000000..cc54d39fdc1ae --- /dev/null +++ b/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-discrepancies.js @@ -0,0 +1,117 @@ +0:: Modify imports used in global file +*** Needs explanation +TsBuild info text without affectedFilesPendingEmit:: /home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt:: +CleanBuild: +{ + "fileInfos": { + "../../tslibs/ts/lib/lib.es2025.full.d.ts": { + "version": "-25093698414-interface 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 + }, + "./class1.ts": { + "version": "4085502068-const a: MagicNumber = 1;\nconsole.log(a);", + "affectsGlobalScope": true + }, + "./constants.ts": { + "version": "-2659799015-export default 2;" + }, + "./types.d.ts": { + "version": "-2080821236-type MagicNumber = typeof import('./constants').default", + "affectsGlobalScope": true + } + }, + "root": [ + [ + [ + 2, + 4 + ], + [ + "./class1.ts", + "./constants.ts", + "./types.d.ts" + ] + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./types.d.ts": [ + "./constants.ts" + ] + }, + "latestChangedDtsFile": "FakeFileName", + "version": "FakeTSVersion" +} +IncrementalBuild: +{ + "fileInfos": { + "../../tslibs/ts/lib/lib.es2025.full.d.ts": { + "version": "-25093698414-interface 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 + }, + "./class1.ts": { + "version": "4085502068-const a: MagicNumber = 1;\nconsole.log(a);", + "affectsGlobalScope": true + }, + "./constants.ts": { + "version": "-2659799015-export default 2;" + }, + "./types.d.ts": { + "version": "-2080821236-type MagicNumber = typeof import('./constants').default", + "affectsGlobalScope": true + } + }, + "root": [ + [ + [ + 2, + 4 + ], + [ + "./class1.ts", + "./constants.ts", + "./types.d.ts" + ] + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./types.d.ts": [ + "./constants.ts" + ] + }, + "emitSignatures": [ + [ + "./class1.ts", + "-3664762255-declare const a = 2;\n" + ] + ], + "latestChangedDtsFile": "FakeFileName", + "version": "FakeTSVersion" +} +Incremental signature is neither dts signature nor file version for File:: ./class1.ts +Incremental:: { + "original": { + "version": "4085502068-const a: MagicNumber = 1;\nconsole.log(a);", + "signature": "-3664763344-declare const a = 1;\n", + "affectsGlobalScope": true + }, + "version": "4085502068-const a: MagicNumber = 1;\nconsole.log(a);", + "signature": "-3664763344-declare const a = 1;\n", + "affectsGlobalScope": true +} +Clean:: { + "original": { + "version": "4085502068-const a: MagicNumber = 1;\nconsole.log(a);", + "signature": "-3664762255-declare const a = 2;\n", + "affectsGlobalScope": true + }, + "version": "4085502068-const a: MagicNumber = 1;\nconsole.log(a);", + "signature": "-3664762255-declare const a = 2;\n", + "affectsGlobalScope": true +} +Dts Signature:: "-3664762255-declare const a = 2;\n" \ No newline at end of file diff --git a/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import-discrepancies.js b/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import-discrepancies.js new file mode 100644 index 0000000000000..742b4a11120b6 --- /dev/null +++ b/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import-discrepancies.js @@ -0,0 +1,131 @@ +0:: Modify imports used in global file +*** Needs explanation +TsBuild info text without affectedFilesPendingEmit:: /home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt:: +CleanBuild: +{ + "fileInfos": { + "../../tslibs/ts/lib/lib.es2025.full.d.ts": { + "version": "-25093698414-interface 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 + }, + "./class1.ts": { + "version": "4085502068-const a: MagicNumber = 1;\nconsole.log(a);", + "affectsGlobalScope": true + }, + "./constants.ts": { + "version": "-2659799015-export default 2;" + }, + "./reexport.ts": { + "version": "-1476032387-export { default as ConstantNumber } from \"./constants\"" + }, + "./types.d.ts": { + "version": "2093085814-type MagicNumber = typeof import('./reexport').ConstantNumber", + "affectsGlobalScope": true + } + }, + "root": [ + [ + [ + 2, + 5 + ], + [ + "./class1.ts", + "./constants.ts", + "./reexport.ts", + "./types.d.ts" + ] + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./reexport.ts": [ + "./constants.ts" + ], + "./types.d.ts": [ + "./reexport.ts" + ] + }, + "latestChangedDtsFile": "FakeFileName", + "version": "FakeTSVersion" +} +IncrementalBuild: +{ + "fileInfos": { + "../../tslibs/ts/lib/lib.es2025.full.d.ts": { + "version": "-25093698414-interface 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 + }, + "./class1.ts": { + "version": "4085502068-const a: MagicNumber = 1;\nconsole.log(a);", + "affectsGlobalScope": true + }, + "./constants.ts": { + "version": "-2659799015-export default 2;" + }, + "./reexport.ts": { + "version": "-1476032387-export { default as ConstantNumber } from \"./constants\"" + }, + "./types.d.ts": { + "version": "2093085814-type MagicNumber = typeof import('./reexport').ConstantNumber", + "affectsGlobalScope": true + } + }, + "root": [ + [ + [ + 2, + 5 + ], + [ + "./class1.ts", + "./constants.ts", + "./reexport.ts", + "./types.d.ts" + ] + ] + ], + "options": { + "composite": true + }, + "referencedMap": { + "./reexport.ts": [ + "./constants.ts" + ], + "./types.d.ts": [ + "./reexport.ts" + ] + }, + "emitSignatures": [ + [ + "./class1.ts", + "-3664762255-declare const a = 2;\n" + ] + ], + "latestChangedDtsFile": "FakeFileName", + "version": "FakeTSVersion" +} +Incremental signature is neither dts signature nor file version for File:: ./class1.ts +Incremental:: { + "original": { + "version": "4085502068-const a: MagicNumber = 1;\nconsole.log(a);", + "signature": "-3664763344-declare const a = 1;\n", + "affectsGlobalScope": true + }, + "version": "4085502068-const a: MagicNumber = 1;\nconsole.log(a);", + "signature": "-3664763344-declare const a = 1;\n", + "affectsGlobalScope": true +} +Clean:: { + "original": { + "version": "4085502068-const a: MagicNumber = 1;\nconsole.log(a);", + "signature": "-3664762255-declare const a = 2;\n", + "affectsGlobalScope": true + }, + "version": "4085502068-const a: MagicNumber = 1;\nconsole.log(a);", + "signature": "-3664762255-declare const a = 2;\n", + "affectsGlobalScope": true +} +Dts Signature:: "-3664762255-declare const a = 2;\n" \ No newline at end of file diff --git a/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import.js b/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import.js index e533011c2f720..2d0f26b6ac960 100644 --- a/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import.js +++ b/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file-through-indirect-import.js @@ -201,7 +201,7 @@ export default _default; //// [/home/src/workspaces/project/reexport.js] file written with same contents //// [/home/src/workspaces/project/tsconfig.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./class1.ts","./constants.ts","./reexport.ts","./types.d.ts"],"fileIdsList":[[3],[4]],"fileInfos":[{"version":"-25093698414-interface 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":"4085502068-const a: MagicNumber = 1;\nconsole.log(a);","signature":"-3664762255-declare const a = 2;\n","affectsGlobalScope":true},{"version":"-2659799015-export default 2;","signature":"-10876795135-declare const _default: 2;\nexport default _default;\n"},{"version":"-1476032387-export { default as ConstantNumber } from \"./constants\"","signature":"-1081498782-export { default as ConstantNumber } from \"./constants\";\n"},{"version":"2093085814-type MagicNumber = typeof import('./reexport').ConstantNumber","affectsGlobalScope":true}],"root":[[2,5]],"options":{"composite":true},"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[[2,[{"start":6,"length":1,"code":2322,"category":1,"messageText":"Type '1' is not assignable to type '2'."}]]],"latestChangedDtsFile":"./class1.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./class1.ts","./constants.ts","./reexport.ts","./types.d.ts"],"fileIdsList":[[3],[4]],"fileInfos":[{"version":"-25093698414-interface 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":"4085502068-const a: MagicNumber = 1;\nconsole.log(a);","signature":"-3664763344-declare const a = 1;\n","affectsGlobalScope":true},{"version":"-2659799015-export default 2;","signature":"-10876795135-declare const _default: 2;\nexport default _default;\n"},{"version":"-1476032387-export { default as ConstantNumber } from \"./constants\"","signature":"-1081498782-export { default as ConstantNumber } from \"./constants\";\n"},{"version":"2093085814-type MagicNumber = typeof import('./reexport').ConstantNumber","affectsGlobalScope":true}],"root":[[2,5]],"options":{"composite":true},"referencedMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[[2,[{"start":6,"length":1,"code":2322,"category":1,"messageText":"Type '1' is not assignable to type '2'."}]]],"emitSignatures":[[2,"-3664762255-declare const a = 2;\n"]],"latestChangedDtsFile":"./class1.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -233,11 +233,11 @@ export default _default; "./class1.ts": { "original": { "version": "4085502068-const a: MagicNumber = 1;\nconsole.log(a);", - "signature": "-3664762255-declare const a = 2;\n", + "signature": "-3664763344-declare const a = 1;\n", "affectsGlobalScope": true }, "version": "4085502068-const a: MagicNumber = 1;\nconsole.log(a);", - "signature": "-3664762255-declare const a = 2;\n", + "signature": "-3664763344-declare const a = 1;\n", "affectsGlobalScope": true }, "./constants.ts": { @@ -305,9 +305,15 @@ export default _default; ] ] ], + "emitSignatures": [ + [ + "./class1.ts", + "-3664762255-declare const a = 2;\n" + ] + ], "latestChangedDtsFile": "./class1.d.ts", "version": "FakeTSVersion", - "size": 1430 + "size": 1490 } diff --git a/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file.js b/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file.js index e16516350f44f..43378f8077143 100644 --- a/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file.js +++ b/tests/baselines/reference/tsc/incremental/change-to-type-that-gets-used-as-global-through-export-in-another-file.js @@ -173,7 +173,7 @@ export default _default; //// [/home/src/workspaces/project/tsconfig.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./class1.ts","./constants.ts","./types.d.ts"],"fileIdsList":[[3]],"fileInfos":[{"version":"-25093698414-interface 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":"4085502068-const a: MagicNumber = 1;\nconsole.log(a);","signature":"-3664762255-declare const a = 2;\n","affectsGlobalScope":true},{"version":"-2659799015-export default 2;","signature":"-10876795135-declare const _default: 2;\nexport default _default;\n"},{"version":"-2080821236-type MagicNumber = typeof import('./constants').default","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true},"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[[2,[{"start":6,"length":1,"code":2322,"category":1,"messageText":"Type '1' is not assignable to type '2'."}]]],"latestChangedDtsFile":"./class1.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./class1.ts","./constants.ts","./types.d.ts"],"fileIdsList":[[3]],"fileInfos":[{"version":"-25093698414-interface 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":"4085502068-const a: MagicNumber = 1;\nconsole.log(a);","signature":"-3664763344-declare const a = 1;\n","affectsGlobalScope":true},{"version":"-2659799015-export default 2;","signature":"-10876795135-declare const _default: 2;\nexport default _default;\n"},{"version":"-2080821236-type MagicNumber = typeof import('./constants').default","affectsGlobalScope":true}],"root":[[2,4]],"options":{"composite":true},"referencedMap":[[4,1]],"semanticDiagnosticsPerFile":[[2,[{"start":6,"length":1,"code":2322,"category":1,"messageText":"Type '1' is not assignable to type '2'."}]]],"emitSignatures":[[2,"-3664762255-declare const a = 2;\n"]],"latestChangedDtsFile":"./class1.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -201,11 +201,11 @@ export default _default; "./class1.ts": { "original": { "version": "4085502068-const a: MagicNumber = 1;\nconsole.log(a);", - "signature": "-3664762255-declare const a = 2;\n", + "signature": "-3664763344-declare const a = 1;\n", "affectsGlobalScope": true }, "version": "4085502068-const a: MagicNumber = 1;\nconsole.log(a);", - "signature": "-3664762255-declare const a = 2;\n", + "signature": "-3664763344-declare const a = 1;\n", "affectsGlobalScope": true }, "./constants.ts": { @@ -261,9 +261,15 @@ export default _default; ] ] ], + "emitSignatures": [ + [ + "./class1.ts", + "-3664762255-declare const a = 2;\n" + ] + ], "latestChangedDtsFile": "./class1.d.ts", "version": "FakeTSVersion", - "size": 1228 + "size": 1288 } diff --git a/tests/baselines/reference/tsc/incremental/with-aliased-const-enums-with-preserveConstEnums.js b/tests/baselines/reference/tsc/incremental/with-aliased-const-enums-with-preserveConstEnums.js index bae0305018fc5..f7370b89ae19e 100644 --- a/tests/baselines/reference/tsc/incremental/with-aliased-const-enums-with-preserveConstEnums.js +++ b/tests/baselines/reference/tsc/incremental/with-aliased-const-enums-with-preserveConstEnums.js @@ -251,7 +251,7 @@ export {}; //// [/home/src/workspaces/project/a.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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},"-10210453821-declare const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };\n",{"version":"-3548623266-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}\n","signature":"3259150197-import { A } from \"./b\";\nexport { A };\n"},"-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n"],"root":[4],"options":{"preserveConstEnums":true,"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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},"-10210453821-declare const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };\n",{"version":"-3548623266-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}\n","signature":"3259150197-import { A } from \"./b\";\nexport { A };\n"},{"version":"-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"preserveConstEnums":true,"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] { @@ -292,8 +292,12 @@ export {}; "signature": "3259150197-import { A } from \"./b\";\nexport { A };\n" }, "./a.ts": { + "original": { + "version": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n", + "signature": "-3531856636-export {};\n" + }, "version": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n", - "signature": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n" + "signature": "-3531856636-export {};\n" } }, "root": [ @@ -315,7 +319,7 @@ export {}; ] }, "version": "FakeTSVersion", - "size": 996 + "size": 1047 } @@ -339,7 +343,7 @@ Output:: //// [/home/src/workspaces/project/c.js] file written with same contents //// [/home/src/workspaces/project/a.js] file written with same contents //// [/home/src/workspaces/project/a.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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},"-11645711104-declare const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };\nexport const randomThing = 10;",{"version":"-3548623266-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}\n","signature":"3259150197-import { A } from \"./b\";\nexport { A };\n"},"-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n"],"root":[4],"options":{"preserveConstEnums":true,"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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},"-11645711104-declare const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };\nexport const randomThing = 10;",{"version":"-3548623266-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}\n","signature":"3259150197-import { A } from \"./b\";\nexport { A };\n"},{"version":"-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"preserveConstEnums":true,"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] { @@ -380,8 +384,12 @@ Output:: "signature": "3259150197-import { A } from \"./b\";\nexport { A };\n" }, "./a.ts": { + "original": { + "version": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n", + "signature": "-3531856636-export {};\n" + }, "version": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n", - "signature": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n" + "signature": "-3531856636-export {};\n" } }, "root": [ @@ -403,7 +411,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1026 + "size": 1077 } @@ -427,7 +435,7 @@ Output:: //// [/home/src/workspaces/project/c.js] file written with same contents //// [/home/src/workspaces/project/a.js] file written with same contents //// [/home/src/workspaces/project/a.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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},"-19677125073-declare const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };\nexport const randomThing = 10;export const randomThing2 = 10;",{"version":"-3548623266-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}\n","signature":"3259150197-import { A } from \"./b\";\nexport { A };\n"},"-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n"],"root":[4],"options":{"preserveConstEnums":true,"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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},"-19677125073-declare const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };\nexport const randomThing = 10;export const randomThing2 = 10;",{"version":"-3548623266-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}\n","signature":"3259150197-import { A } from \"./b\";\nexport { A };\n"},{"version":"-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"preserveConstEnums":true,"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] { @@ -468,8 +476,12 @@ Output:: "signature": "3259150197-import { A } from \"./b\";\nexport { A };\n" }, "./a.ts": { + "original": { + "version": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n", + "signature": "-3531856636-export {};\n" + }, "version": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n", - "signature": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n" + "signature": "-3531856636-export {};\n" } }, "root": [ @@ -491,7 +503,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1057 + "size": 1108 } diff --git a/tests/baselines/reference/tsc/incremental/with-aliased-const-enums.js b/tests/baselines/reference/tsc/incremental/with-aliased-const-enums.js index 79d948b6f9000..b7438a2aae76c 100644 --- a/tests/baselines/reference/tsc/incremental/with-aliased-const-enums.js +++ b/tests/baselines/reference/tsc/incremental/with-aliased-const-enums.js @@ -246,7 +246,7 @@ export {}; //// [/home/src/workspaces/project/a.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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},"-10210453821-declare const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };\n",{"version":"-3548623266-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}\n","signature":"3259150197-import { A } from \"./b\";\nexport { A };\n"},"-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n"],"root":[4],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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},"-10210453821-declare const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };\n",{"version":"-3548623266-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}\n","signature":"3259150197-import { A } from \"./b\";\nexport { A };\n"},{"version":"-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] { @@ -287,8 +287,12 @@ export {}; "signature": "3259150197-import { A } from \"./b\";\nexport { A };\n" }, "./a.ts": { + "original": { + "version": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n", + "signature": "-3531856636-export {};\n" + }, "version": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n", - "signature": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n" + "signature": "-3531856636-export {};\n" } }, "root": [ @@ -309,7 +313,7 @@ export {}; ] }, "version": "FakeTSVersion", - "size": 970 + "size": 1021 } @@ -333,7 +337,7 @@ Output:: //// [/home/src/workspaces/project/c.js] file written with same contents //// [/home/src/workspaces/project/a.js] file written with same contents //// [/home/src/workspaces/project/a.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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},"-11645711104-declare const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };\nexport const randomThing = 10;",{"version":"-3548623266-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}\n","signature":"3259150197-import { A } from \"./b\";\nexport { A };\n"},"-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n"],"root":[4],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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},"-11645711104-declare const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };\nexport const randomThing = 10;",{"version":"-3548623266-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}\n","signature":"3259150197-import { A } from \"./b\";\nexport { A };\n"},{"version":"-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] { @@ -374,8 +378,12 @@ Output:: "signature": "3259150197-import { A } from \"./b\";\nexport { A };\n" }, "./a.ts": { + "original": { + "version": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n", + "signature": "-3531856636-export {};\n" + }, "version": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n", - "signature": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n" + "signature": "-3531856636-export {};\n" } }, "root": [ @@ -396,7 +404,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1000 + "size": 1051 } @@ -420,7 +428,7 @@ Output:: //// [/home/src/workspaces/project/c.js] file written with same contents //// [/home/src/workspaces/project/a.js] file written with same contents //// [/home/src/workspaces/project/a.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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},"-19677125073-declare const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };\nexport const randomThing = 10;export const randomThing2 = 10;",{"version":"-3548623266-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}\n","signature":"3259150197-import { A } from \"./b\";\nexport { A };\n"},"-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n"],"root":[4],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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},"-19677125073-declare const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };\nexport const randomThing = 10;export const randomThing2 = 10;",{"version":"-3548623266-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}\n","signature":"3259150197-import { A } from \"./b\";\nexport { A };\n"},{"version":"-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] { @@ -461,8 +469,12 @@ Output:: "signature": "3259150197-import { A } from \"./b\";\nexport { A };\n" }, "./a.ts": { + "original": { + "version": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n", + "signature": "-3531856636-export {};\n" + }, "version": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n", - "signature": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n" + "signature": "-3531856636-export {};\n" } }, "root": [ @@ -483,7 +495,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1031 + "size": 1082 } diff --git a/tests/baselines/reference/tsc/incremental/with-aliased-in-different-file-const-enums-with-preserveConstEnums.js b/tests/baselines/reference/tsc/incremental/with-aliased-in-different-file-const-enums-with-preserveConstEnums.js index 01dee082547b7..2f16873d4863a 100644 --- a/tests/baselines/reference/tsc/incremental/with-aliased-in-different-file-const-enums-with-preserveConstEnums.js +++ b/tests/baselines/reference/tsc/incremental/with-aliased-in-different-file-const-enums-with-preserveConstEnums.js @@ -451,7 +451,7 @@ Output:: //// [/home/src/workspaces/project/c.js] file written with same contents //// [/home/src/workspaces/project/a.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./worker.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileIdsList":[[4],[2],[3]],"fileInfos":[{"version":"-25093698414-interface 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},"-10088923642-export const enum AWorker {\n ONE = 3\n}\n","2191846063-export { AWorker as A } from \"./worker\";\nexport const randomThing = 10;export const randomThing2 = 10;",{"version":"-3548623266-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}\n","signature":"3259150197-import { A } from \"./b\";\nexport { A };\n"},"-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n"],"root":[5],"options":{"preserveConstEnums":true,"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[5,1],[3,2],[4,3]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./worker.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileIdsList":[[4],[2],[3]],"fileInfos":[{"version":"-25093698414-interface 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},"-10088923642-export const enum AWorker {\n ONE = 3\n}\n","2191846063-export { AWorker as A } from \"./worker\";\nexport const randomThing = 10;export const randomThing2 = 10;",{"version":"-3548623266-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}\n","signature":"3259150197-import { A } from \"./b\";\nexport { A };\n"},{"version":"-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n","signature":"-3531856636-export {};\n"}],"root":[5],"options":{"preserveConstEnums":true,"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[5,1],[3,2],[4,3]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] { @@ -500,8 +500,12 @@ Output:: "signature": "3259150197-import { A } from \"./b\";\nexport { A };\n" }, "./a.ts": { + "original": { + "version": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n", + "signature": "-3531856636-export {};\n" + }, "version": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n", - "signature": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n" + "signature": "-3531856636-export {};\n" } }, "root": [ @@ -526,7 +530,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1114 + "size": 1165 } diff --git a/tests/baselines/reference/tsc/incremental/with-aliased-in-different-file-const-enums.js b/tests/baselines/reference/tsc/incremental/with-aliased-in-different-file-const-enums.js index 6b5a5ecbb7f78..32c7e248567db 100644 --- a/tests/baselines/reference/tsc/incremental/with-aliased-in-different-file-const-enums.js +++ b/tests/baselines/reference/tsc/incremental/with-aliased-in-different-file-const-enums.js @@ -444,7 +444,7 @@ Output:: //// [/home/src/workspaces/project/c.js] file written with same contents //// [/home/src/workspaces/project/a.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./worker.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileIdsList":[[4],[2],[3]],"fileInfos":[{"version":"-25093698414-interface 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},"-10088923642-export const enum AWorker {\n ONE = 3\n}\n","2191846063-export { AWorker as A } from \"./worker\";\nexport const randomThing = 10;export const randomThing2 = 10;",{"version":"-3548623266-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}\n","signature":"3259150197-import { A } from \"./b\";\nexport { A };\n"},"-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n"],"root":[5],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[5,1],[3,2],[4,3]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./worker.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileIdsList":[[4],[2],[3]],"fileInfos":[{"version":"-25093698414-interface 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},"-10088923642-export const enum AWorker {\n ONE = 3\n}\n","2191846063-export { AWorker as A } from \"./worker\";\nexport const randomThing = 10;export const randomThing2 = 10;",{"version":"-3548623266-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}\n","signature":"3259150197-import { A } from \"./b\";\nexport { A };\n"},{"version":"-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n","signature":"-3531856636-export {};\n"}],"root":[5],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[5,1],[3,2],[4,3]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] { @@ -493,8 +493,12 @@ Output:: "signature": "3259150197-import { A } from \"./b\";\nexport { A };\n" }, "./a.ts": { + "original": { + "version": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n", + "signature": "-3531856636-export {};\n" + }, "version": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n", - "signature": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n" + "signature": "-3531856636-export {};\n" } }, "root": [ @@ -518,7 +522,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1088 + "size": 1139 } diff --git a/tests/baselines/reference/tsc/incremental/with-const-enums-with-preserveConstEnums.js b/tests/baselines/reference/tsc/incremental/with-const-enums-with-preserveConstEnums.js index 0965c31731fd2..33ca53eca1be2 100644 --- a/tests/baselines/reference/tsc/incremental/with-const-enums-with-preserveConstEnums.js +++ b/tests/baselines/reference/tsc/incremental/with-const-enums-with-preserveConstEnums.js @@ -248,7 +248,7 @@ export {}; //// [/home/src/workspaces/project/a.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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},"-7434137268-export const enum A {\n ONE = 3\n}\n",{"version":"-3548623266-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}\n","signature":"3259150197-import { A } from \"./b\";\nexport { A };\n"},"-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n"],"root":[4],"options":{"preserveConstEnums":true,"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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},"-7434137268-export const enum A {\n ONE = 3\n}\n",{"version":"-3548623266-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}\n","signature":"3259150197-import { A } from \"./b\";\nexport { A };\n"},{"version":"-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"preserveConstEnums":true,"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] { @@ -289,8 +289,12 @@ export {}; "signature": "3259150197-import { A } from \"./b\";\nexport { A };\n" }, "./a.ts": { + "original": { + "version": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n", + "signature": "-3531856636-export {};\n" + }, "version": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n", - "signature": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n" + "signature": "-3531856636-export {};\n" } }, "root": [ @@ -312,7 +316,7 @@ export {}; ] }, "version": "FakeTSVersion", - "size": 962 + "size": 1013 } @@ -335,7 +339,7 @@ Output:: //// [/home/src/workspaces/project/c.js] file written with same contents //// [/home/src/workspaces/project/a.js] file written with same contents //// [/home/src/workspaces/project/a.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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},"-1392741047-export const enum A {\n ONE = 3\n}\nexport const randomThing = 10;",{"version":"-3548623266-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}\n","signature":"3259150197-import { A } from \"./b\";\nexport { A };\n"},"-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n"],"root":[4],"options":{"preserveConstEnums":true,"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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},"-1392741047-export const enum A {\n ONE = 3\n}\nexport const randomThing = 10;",{"version":"-3548623266-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}\n","signature":"3259150197-import { A } from \"./b\";\nexport { A };\n"},{"version":"-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"preserveConstEnums":true,"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] { @@ -376,8 +380,12 @@ Output:: "signature": "3259150197-import { A } from \"./b\";\nexport { A };\n" }, "./a.ts": { + "original": { + "version": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n", + "signature": "-3531856636-export {};\n" + }, "version": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n", - "signature": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n" + "signature": "-3531856636-export {};\n" } }, "root": [ @@ -399,7 +407,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 992 + "size": 1043 } @@ -422,7 +430,7 @@ Output:: //// [/home/src/workspaces/project/c.js] file written with same contents //// [/home/src/workspaces/project/a.js] file written with same contents //// [/home/src/workspaces/project/a.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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},"-11013141160-export const enum A {\n ONE = 3\n}\nexport const randomThing = 10;export const randomThing2 = 10;",{"version":"-3548623266-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}\n","signature":"3259150197-import { A } from \"./b\";\nexport { A };\n"},"-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n"],"root":[4],"options":{"preserveConstEnums":true,"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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},"-11013141160-export const enum A {\n ONE = 3\n}\nexport const randomThing = 10;export const randomThing2 = 10;",{"version":"-3548623266-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}\n","signature":"3259150197-import { A } from \"./b\";\nexport { A };\n"},{"version":"-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"preserveConstEnums":true,"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] { @@ -463,8 +471,12 @@ Output:: "signature": "3259150197-import { A } from \"./b\";\nexport { A };\n" }, "./a.ts": { + "original": { + "version": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n", + "signature": "-3531856636-export {};\n" + }, "version": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n", - "signature": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n" + "signature": "-3531856636-export {};\n" } }, "root": [ @@ -486,7 +498,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1024 + "size": 1075 } diff --git a/tests/baselines/reference/tsc/incremental/with-const-enums.js b/tests/baselines/reference/tsc/incremental/with-const-enums.js index 533f0581c500d..7aafe05f93151 100644 --- a/tests/baselines/reference/tsc/incremental/with-const-enums.js +++ b/tests/baselines/reference/tsc/incremental/with-const-enums.js @@ -243,7 +243,7 @@ export {}; //// [/home/src/workspaces/project/a.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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},"-7434137268-export const enum A {\n ONE = 3\n}\n",{"version":"-3548623266-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}\n","signature":"3259150197-import { A } from \"./b\";\nexport { A };\n"},"-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n"],"root":[4],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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},"-7434137268-export const enum A {\n ONE = 3\n}\n",{"version":"-3548623266-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}\n","signature":"3259150197-import { A } from \"./b\";\nexport { A };\n"},{"version":"-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] { @@ -284,8 +284,12 @@ export {}; "signature": "3259150197-import { A } from \"./b\";\nexport { A };\n" }, "./a.ts": { + "original": { + "version": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n", + "signature": "-3531856636-export {};\n" + }, "version": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n", - "signature": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n" + "signature": "-3531856636-export {};\n" } }, "root": [ @@ -306,7 +310,7 @@ export {}; ] }, "version": "FakeTSVersion", - "size": 936 + "size": 987 } @@ -329,7 +333,7 @@ Output:: //// [/home/src/workspaces/project/c.js] file written with same contents //// [/home/src/workspaces/project/a.js] file written with same contents //// [/home/src/workspaces/project/a.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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},"-1392741047-export const enum A {\n ONE = 3\n}\nexport const randomThing = 10;",{"version":"-3548623266-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}\n","signature":"3259150197-import { A } from \"./b\";\nexport { A };\n"},"-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n"],"root":[4],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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},"-1392741047-export const enum A {\n ONE = 3\n}\nexport const randomThing = 10;",{"version":"-3548623266-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}\n","signature":"3259150197-import { A } from \"./b\";\nexport { A };\n"},{"version":"-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] { @@ -370,8 +374,12 @@ Output:: "signature": "3259150197-import { A } from \"./b\";\nexport { A };\n" }, "./a.ts": { + "original": { + "version": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n", + "signature": "-3531856636-export {};\n" + }, "version": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n", - "signature": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n" + "signature": "-3531856636-export {};\n" } }, "root": [ @@ -392,7 +400,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 966 + "size": 1017 } @@ -415,7 +423,7 @@ Output:: //// [/home/src/workspaces/project/c.js] file written with same contents //// [/home/src/workspaces/project/a.js] file written with same contents //// [/home/src/workspaces/project/a.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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},"-11013141160-export const enum A {\n ONE = 3\n}\nexport const randomThing = 10;export const randomThing2 = 10;",{"version":"-3548623266-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}\n","signature":"3259150197-import { A } from \"./b\";\nexport { A };\n"},"-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n"],"root":[4],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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},"-11013141160-export const enum A {\n ONE = 3\n}\nexport const randomThing = 10;export const randomThing2 = 10;",{"version":"-3548623266-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}\n","signature":"3259150197-import { A } from \"./b\";\nexport { A };\n"},{"version":"-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n","signature":"-3531856636-export {};\n"}],"root":[4],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] { @@ -456,8 +464,12 @@ Output:: "signature": "3259150197-import { A } from \"./b\";\nexport { A };\n" }, "./a.ts": { + "original": { + "version": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n", + "signature": "-3531856636-export {};\n" + }, "version": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n", - "signature": "-5009241479-import {A} from \"./c\"\nlet a = A.ONE\n" + "signature": "-3531856636-export {};\n" } }, "root": [ @@ -478,7 +490,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 998 + "size": 1049 } diff --git a/tests/baselines/reference/tsc/noEmit/multiFile/changes-composite-discrepancies.js b/tests/baselines/reference/tsc/noEmit/multiFile/changes-composite-discrepancies.js index ea95fe7cde94f..57d0f58b3cb04 100644 --- a/tests/baselines/reference/tsc/noEmit/multiFile/changes-composite-discrepancies.js +++ b/tests/baselines/reference/tsc/noEmit/multiFile/changes-composite-discrepancies.js @@ -392,14 +392,6 @@ IncrementalBuild: [ "./src/class.ts", "-9508063301-export declare class classC {\n prop: number;\n}\n" - ], - [ - "./src/directuse.ts", - "-3531856636-export {};\n" - ], - [ - "./src/indirectuse.ts", - "-3531856636-export {};\n" ] ], "latestChangedDtsFile": "FakeFileName", @@ -1061,14 +1053,6 @@ IncrementalBuild: [ "./src/class.ts", "-12157283604-export declare class classC {\n prop1: number;\n}\n" - ], - [ - "./src/directuse.ts", - "-3531856636-export {};\n" - ], - [ - "./src/indirectuse.ts", - "-3531856636-export {};\n" ] ], "latestChangedDtsFile": "FakeFileName", diff --git a/tests/baselines/reference/tsc/noEmit/multiFile/changes-composite.js b/tests/baselines/reference/tsc/noEmit/multiFile/changes-composite.js index b0f6465206fe1..14af07b58cc57 100644 --- a/tests/baselines/reference/tsc/noEmit/multiFile/changes-composite.js +++ b/tests/baselines/reference/tsc/noEmit/multiFile/changes-composite.js @@ -345,7 +345,7 @@ Errors Files //// [/home/src/workspaces/project/tsconfig.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"emitSignatures":[[2,"-9508063301-export declare class classC {\n prop: number;\n}\n"],[4,"-3531856636-export {};\n"],[5,"-3531856636-export {};\n"]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"emitSignatures":[[2,"-9508063301-export declare class classC {\n prop: number;\n}\n"]],"latestChangedDtsFile":"./src/noChangeFileWithEmitSpecificError.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -393,12 +393,20 @@ Errors Files "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/nochangefile.ts": { "original": { @@ -533,19 +541,11 @@ Errors Files [ "./src/class.ts", "-9508063301-export declare class classC {\n prop: number;\n}\n" - ], - [ - "./src/directuse.ts", - "-3531856636-export {};\n" - ], - [ - "./src/indirectuse.ts", - "-3531856636-export {};\n" ] ], "latestChangedDtsFile": "./src/noChangeFileWithEmitSpecificError.d.ts", "version": "FakeTSVersion", - "size": 2703 + "size": 2743 } @@ -1216,7 +1216,7 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 //// [/home/src/workspaces/project/tsconfig.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"emitSignatures":[[2,"-12157283604-export declare class classC {\n prop1: number;\n}\n"],[4,"-3531856636-export {};\n"],[5,"-3531856636-export {};\n"]],"latestChangedDtsFile":"./src/class.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"emitSignatures":[[2,"-12157283604-export declare class classC {\n prop1: number;\n}\n"]],"latestChangedDtsFile":"./src/class.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1264,12 +1264,20 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/nochangefile.ts": { "original": { @@ -1360,19 +1368,11 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 [ "./src/class.ts", "-12157283604-export declare class classC {\n prop1: number;\n}\n" - ], - [ - "./src/directuse.ts", - "-3531856636-export {};\n" - ], - [ - "./src/indirectuse.ts", - "-3531856636-export {};\n" ] ], "latestChangedDtsFile": "./src/class.d.ts", "version": "FakeTSVersion", - "size": 2113 + "size": 2153 } diff --git a/tests/baselines/reference/tsc/noEmit/multiFile/changes-incremental-declaration.js b/tests/baselines/reference/tsc/noEmit/multiFile/changes-incremental-declaration.js index 6a5cbb8aa0452..aaedae819544a 100644 --- a/tests/baselines/reference/tsc/noEmit/multiFile/changes-incremental-declaration.js +++ b/tests/baselines/reference/tsc/noEmit/multiFile/changes-incremental-declaration.js @@ -345,7 +345,7 @@ Errors Files //// [/home/src/workspaces/project/tsconfig.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -393,12 +393,20 @@ Errors Files "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/nochangefile.ts": { "original": { @@ -530,7 +538,7 @@ Errors Files ] ], "version": "FakeTSVersion", - "size": 2482 + "size": 2584 } @@ -1206,7 +1214,7 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 //// [/home/src/workspaces/project/tsconfig.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1254,12 +1262,20 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/nochangefile.ts": { "original": { @@ -1347,7 +1363,7 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 ] ], "version": "FakeTSVersion", - "size": 1918 + "size": 2020 } diff --git a/tests/baselines/reference/tsc/noEmit/multiFile/changes-incremental.js b/tests/baselines/reference/tsc/noEmit/multiFile/changes-incremental.js index fab64dcd2c6fd..044e47dbf05cd 100644 --- a/tests/baselines/reference/tsc/noEmit/multiFile/changes-incremental.js +++ b/tests/baselines/reference/tsc/noEmit/multiFile/changes-incremental.js @@ -504,7 +504,7 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 //// [/home/src/workspaces/project/src/directUse.js] file written with same contents //// [/home/src/workspaces/project/src/indirectUse.js] file written with same contents //// [/home/src/workspaces/project/tsconfig.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},"6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -552,12 +552,20 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/nochangefile.ts": { "version": "6714567633-export function writeLog(s: string) {\n}", @@ -615,7 +623,7 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 ] ], "version": "FakeTSVersion", - "size": 1659 + "size": 1761 } @@ -750,7 +758,7 @@ export class classC { //// [/home/src/workspaces/project/src/indirectClass.js] file written with same contents //// [/home/src/workspaces/project/tsconfig.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"1786859709-export class classC {\n prop1 = 1;\n}","signature":"-12157283604-export declare class classC {\n prop1: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},"6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -798,12 +806,20 @@ export class classC { "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/nochangefile.ts": { "version": "6714567633-export function writeLog(s: string) {\n}", @@ -905,7 +921,7 @@ export class classC { ] ], "version": "FakeTSVersion", - "size": 2223 + "size": 2325 } @@ -1105,7 +1121,7 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 //// [/home/src/workspaces/project/tsconfig.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,3],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},"6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,3],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1153,12 +1169,20 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/nochangefile.ts": { "version": "6714567633-export function writeLog(s: string) {\n}", @@ -1226,7 +1250,7 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 ] ], "version": "FakeTSVersion", - "size": 1692 + "size": 1794 } @@ -1256,7 +1280,7 @@ export class classC { //// [/home/src/workspaces/project/src/indirectClass.js] file written with same contents //// [/home/src/workspaces/project/tsconfig.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},"6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -1304,12 +1328,20 @@ export class classC { "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/nochangefile.ts": { "version": "6714567633-export function writeLog(s: string) {\n}", @@ -1367,7 +1399,7 @@ export class classC { ] ], "version": "FakeTSVersion", - "size": 1659 + "size": 1761 } diff --git a/tests/baselines/reference/tsc/noEmit/multiFile/changes-with-initial-noEmit-composite-discrepancies.js b/tests/baselines/reference/tsc/noEmit/multiFile/changes-with-initial-noEmit-composite-discrepancies.js index 6b7d4565e441d..a618433c8bcf7 100644 --- a/tests/baselines/reference/tsc/noEmit/multiFile/changes-with-initial-noEmit-composite-discrepancies.js +++ b/tests/baselines/reference/tsc/noEmit/multiFile/changes-with-initial-noEmit-composite-discrepancies.js @@ -130,14 +130,6 @@ IncrementalBuild: [ "./src/class.ts", "-12157283604-export declare class classC {\n prop1: number;\n}\n" - ], - [ - "./src/directuse.ts", - "-3531856636-export {};\n" - ], - [ - "./src/indirectuse.ts", - "-3531856636-export {};\n" ] ], "latestChangedDtsFile": "FakeFileName", diff --git a/tests/baselines/reference/tsc/noEmit/multiFile/changes-with-initial-noEmit-composite.js b/tests/baselines/reference/tsc/noEmit/multiFile/changes-with-initial-noEmit-composite.js index fd5c9923e34f5..a2920d8c3b1ab 100644 --- a/tests/baselines/reference/tsc/noEmit/multiFile/changes-with-initial-noEmit-composite.js +++ b/tests/baselines/reference/tsc/noEmit/multiFile/changes-with-initial-noEmit-composite.js @@ -683,7 +683,7 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 //// [/home/src/workspaces/project/tsconfig.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"emitSignatures":[[2,"-12157283604-export declare class classC {\n prop1: number;\n}\n"],[4,"-3531856636-export {};\n"],[5,"-3531856636-export {};\n"]],"latestChangedDtsFile":"./src/class.d.ts","version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"composite":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"emitSignatures":[[2,"-12157283604-export declare class classC {\n prop1: number;\n}\n"]],"latestChangedDtsFile":"./src/class.d.ts","version":"FakeTSVersion"} //// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -731,12 +731,20 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/nochangefile.ts": { "original": { @@ -827,19 +835,11 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 [ "./src/class.ts", "-12157283604-export declare class classC {\n prop1: number;\n}\n" - ], - [ - "./src/directuse.ts", - "-3531856636-export {};\n" - ], - [ - "./src/indirectuse.ts", - "-3531856636-export {};\n" ] ], "latestChangedDtsFile": "./src/class.d.ts", "version": "FakeTSVersion", - "size": 2113 + "size": 2153 } diff --git a/tests/baselines/reference/tsc/noEmit/multiFile/changes-with-initial-noEmit-incremental-declaration.js b/tests/baselines/reference/tsc/noEmit/multiFile/changes-with-initial-noEmit-incremental-declaration.js index e3f2963f34386..b2267d55a4588 100644 --- a/tests/baselines/reference/tsc/noEmit/multiFile/changes-with-initial-noEmit-incremental-declaration.js +++ b/tests/baselines/reference/tsc/noEmit/multiFile/changes-with-initial-noEmit-incremental-declaration.js @@ -677,7 +677,7 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 //// [/home/src/workspaces/project/tsconfig.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;",{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"6714567633-export function writeLog(s: string) {\n}","signature":"8055010000-export declare function writeLog(s: string): void;\n"},{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","signature":"-5615417221-declare function someFunc(arguments: boolean, ...rest: any[]): void;\n","affectsGlobalScope":true}],"root":[[2,7]],"options":{"declaration":true},"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,[4],3,[5]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -725,12 +725,20 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/nochangefile.ts": { "original": { @@ -818,7 +826,7 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 ] ], "version": "FakeTSVersion", - "size": 1918 + "size": 2020 } diff --git a/tests/baselines/reference/tsc/noEmit/multiFile/changes-with-initial-noEmit-incremental.js b/tests/baselines/reference/tsc/noEmit/multiFile/changes-with-initial-noEmit-incremental.js index 3becb488c4ad1..66366e5b93594 100644 --- a/tests/baselines/reference/tsc/noEmit/multiFile/changes-with-initial-noEmit-incremental.js +++ b/tests/baselines/reference/tsc/noEmit/multiFile/changes-with-initial-noEmit-incremental.js @@ -605,7 +605,7 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 //// [/home/src/workspaces/project/tsconfig.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,3],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},"6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"affectedFilesPendingEmit":[2,3],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -653,12 +653,20 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/nochangefile.ts": { "version": "6714567633-export function writeLog(s: string) {\n}", @@ -726,7 +734,7 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 ] ], "version": "FakeTSVersion", - "size": 1692 + "size": 1794 } @@ -749,7 +757,7 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 //// [/home/src/workspaces/project/tsconfig.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.es2025.full.d.ts","./src/class.ts","./src/indirectclass.ts","./src/directuse.ts","./src/indirectuse.ts","./src/nochangefile.ts","./src/nochangefilewithemitspecificerror.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"545032748-export class classC {\n prop = 1;\n}","signature":"-9508063301-export declare class classC {\n prop: number;\n}\n"},{"version":"6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","signature":"9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},{"version":"-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","signature":"-3531856636-export {};\n"},"6714567633-export function writeLog(s: string) {\n}",{"version":"-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}","affectsGlobalScope":true}],"root":[[2,7]],"referencedMap":[[4,1],[3,2],[5,1]],"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":9,"messageText":"Invalid use of 'arguments' in strict mode.","category":1,"code":1100}]]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -797,12 +805,20 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 "signature": "9337978648-import { classC } from './class';\nexport declare class indirectClass {\n classC: classC;\n}\n" }, "./src/directuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/indirectuse.ts": { + "original": { + "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "signature": "-3531856636-export {};\n" + }, "version": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", - "signature": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;" + "signature": "-3531856636-export {};\n" }, "./src/nochangefile.ts": { "version": "6714567633-export function writeLog(s: string) {\n}", @@ -860,7 +876,7 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 ] ], "version": "FakeTSVersion", - "size": 1659 + "size": 1761 } //// [/home/src/workspaces/project/src/class.js] diff --git a/tests/baselines/reference/tscWatch/emit/emit-file-content/should-emit-specified-file.js b/tests/baselines/reference/tscWatch/emit/emit-file-content/should-emit-specified-file.js index 73e2adb5f70f2..1e3c77921d3b4 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-file-content/should-emit-specified-file.js +++ b/tests/baselines/reference/tscWatch/emit/emit-file-content/should-emit-specified-file.js @@ -218,6 +218,6 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /home/src/projects/a/b/f1.ts (computed .d.ts) /home/src/projects/a/b/f2.ts (computed .d.ts) -/home/src/projects/a/b/f3.ts (used version) +/home/src/projects/a/b/f3.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-return-cascaded-affected-file-list.js b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-return-cascaded-affected-file-list.js index 1c570355e1d58..8ee452b0098d3 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-return-cascaded-affected-file-list.js +++ b/tests/baselines/reference/tscWatch/emit/emit-for-configured-projects/should-return-cascaded-affected-file-list.js @@ -266,7 +266,7 @@ Shape signatures in builder refreshed for:: /home/src/projects/a/b/modulefile1.ts (computed .d.ts) /home/src/projects/a/b/file1consumer2.ts (computed .d.ts) /home/src/projects/a/b/file1consumer1.ts (computed .d.ts) -/home/src/projects/a/b/file1consumer1consumer1.ts (used version) +/home/src/projects/a/b/file1consumer1consumer1.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change-with-incremental.js index 3fb8f2ac6b741..ecdcc0c25ca60 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change-with-incremental.js @@ -379,7 +379,7 @@ export class C { //// [/user/username/projects/myproject/b.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.es2025.full.d.ts","./c.ts","./b.ts","./a.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"-22447130237-export class C\n{\n d = 1;\n}","signature":"-6977846840-export declare class C {\n d: number;\n}\n"},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n"},"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);"],"root":[[2,4]],"referencedMap":[[4,1],[3,2]],"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.es2025.full.d.ts","./c.ts","./b.ts","./a.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"-22447130237-export class C\n{\n d = 1;\n}","signature":"-6977846840-export declare class C {\n d: number;\n}\n"},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n"},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"referencedMap":[[4,1],[3,2]],"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -424,8 +424,12 @@ export class C { "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" }, "./a.ts": { + "original": { + "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "signature": "-3531856636-export {};\n" + }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);" + "signature": "-3531856636-export {};\n" } }, "root": [ @@ -450,7 +454,7 @@ export class C { ] }, "version": "FakeTSVersion", - "size": 1063 + "size": 1114 } @@ -480,7 +484,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.ts (computed .d.ts) /user/username/projects/myproject/b.ts (computed .d.ts) -/user/username/projects/myproject/a.ts (used version) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -523,7 +527,7 @@ export class C { //// [/user/username/projects/myproject/b.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.es2025.full.d.ts","./c.ts","./b.ts","./a.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"-22846341163-export class C\n{\n d2 = 1;\n}","signature":"-4637923302-export declare class C {\n d2: number;\n}\n"},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n"},"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);"],"root":[[2,4]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[[4,[{"start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]]],"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.es2025.full.d.ts","./c.ts","./b.ts","./a.ts"],"fileIdsList":[[3],[2]],"fileInfos":[{"version":"-25093698414-interface 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":"-22846341163-export class C\n{\n d2 = 1;\n}","signature":"-4637923302-export declare class C {\n d2: number;\n}\n"},{"version":"-6292386773-import {C} from './c';\nexport class B\n{\n c = new C();\n}","signature":"-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n"},{"version":"4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);","signature":"-3531856636-export {};\n"}],"root":[[2,4]],"referencedMap":[[4,1],[3,2]],"semanticDiagnosticsPerFile":[[4,[{"start":82,"length":1,"code":2339,"category":1,"messageText":"Property 'd' does not exist on type 'C'."}]]],"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -568,8 +572,12 @@ export class C { "signature": "-165097315-import { C } from './c';\nexport declare class B {\n c: C;\n}\n" }, "./a.ts": { + "original": { + "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", + "signature": "-3531856636-export {};\n" + }, "version": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);", - "signature": "4878398349-import {B} from './b';\ndeclare var console: any;\nlet b = new B();\nconsole.log(b.c.d);" + "signature": "-3531856636-export {};\n" } }, "root": [ @@ -608,7 +616,7 @@ export class C { ] ], "version": "FakeTSVersion", - "size": 1208 + "size": 1259 } @@ -638,6 +646,6 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.ts (computed .d.ts) /user/username/projects/myproject/b.ts (computed .d.ts) -/user/username/projects/myproject/a.ts (used version) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change.js index a76dde55c85b1..5d42e4bdab06d 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/deepImportChanges/errors-for-.ts-change.js @@ -242,7 +242,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.ts (computed .d.ts) /user/username/projects/myproject/b.ts (computed .d.ts) -/user/username/projects/myproject/a.ts (used version) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -310,6 +310,6 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.ts (computed .d.ts) /user/username/projects/myproject/b.ts (computed .d.ts) -/user/username/projects/myproject/a.ts (used version) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js index dcc9aa0d58691..99476351fc457 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js @@ -528,7 +528,7 @@ Output:: //// [/user/username/projects/myproject/a.js] file written with same contents //// [/user/username/projects/myproject/b.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.es2025.full.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileIdsList":[[2],[3],[4],[5]],"fileInfos":[{"version":"-25093698414-interface 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":"9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}","signature":"8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n"},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n"},"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","-5185546240-import \"./d\";"],"root":[[2,6]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[[4,[{"start":139,"length":1,"code":2353,"category":1,"messageText":"Object literal may only specify known properties, and 'x' does not exist in type 'Coords'.","relatedInformation":[{"file":"./a.ts","start":47,"length":1,"messageText":"The expected type comes from property 'c' which is declared here on type 'PointWrapper'","category":3,"code":6500}]}]],[5,[{"start":45,"length":1,"code":2339,"category":1,"messageText":"Property 'x' does not exist on type 'Coords'."}]]],"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.es2025.full.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileIdsList":[[2],[3],[4],[5]],"fileInfos":[{"version":"-25093698414-interface 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":"9889814467-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}","signature":"8536297517-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x2: number;\n y: number;\n}\n"},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n"},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n"},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n"},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n"}],"root":[[2,6]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"semanticDiagnosticsPerFile":[[4,[{"start":139,"length":1,"code":2353,"category":1,"messageText":"Object literal may only specify known properties, and 'x' does not exist in type 'Coords'.","relatedInformation":[{"file":"./a.ts","start":47,"length":1,"messageText":"The expected type comes from property 'c' which is declared here on type 'PointWrapper'","category":3,"code":6500}]}]],[5,[{"start":45,"length":1,"code":2339,"category":1,"messageText":"Property 'x' does not exist on type 'Coords'."}]]],"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -581,16 +581,28 @@ Output:: "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" }, "./c.ts": { + "original": { + "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + }, "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" }, "./d.ts": { + "original": { + "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", + "signature": "-3531856636-export {};\n" + }, "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;" + "signature": "-3531856636-export {};\n" }, "./e.ts": { + "original": { + "version": "-5185546240-import \"./d\";", + "signature": "-3619301366-import \"./d\";\n" + }, "version": "-5185546240-import \"./d\";", - "signature": "-5185546240-import \"./d\";" + "signature": "-3619301366-import \"./d\";\n" } }, "root": [ @@ -659,7 +671,7 @@ Output:: ] ], "version": "FakeTSVersion", - "size": 2014 + "size": 2250 } @@ -695,9 +707,9 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/a.ts (computed .d.ts) /user/username/projects/myproject/b.ts (computed .d.ts) -/user/username/projects/myproject/c.ts (used version) -/user/username/projects/myproject/d.ts (used version) -/user/username/projects/myproject/e.ts (used version) +/user/username/projects/myproject/c.ts (kept existing computed signature) +/user/username/projects/myproject/d.ts (kept existing computed signature) +/user/username/projects/myproject/e.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -734,7 +746,7 @@ Output:: //// [/user/username/projects/myproject/a.js] file written with same contents //// [/user/username/projects/myproject/b.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.es2025.full.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileIdsList":[[2],[3],[4],[5]],"fileInfos":[{"version":"-25093698414-interface 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":"2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}","signature":"696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n"},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n"},"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","-5185546240-import \"./d\";"],"root":[[2,6]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.es2025.full.d.ts","./a.ts","./b.ts","./c.ts","./d.ts","./e.ts"],"fileIdsList":[[2],[3],[4],[5]],"fileInfos":[{"version":"-25093698414-interface 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":"2103509937-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}","signature":"696351195-export interface Point {\n name: string;\n c: Coords;\n}\nexport interface Coords {\n x: number;\n y: number;\n}\n"},{"version":"-8029610078-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}","signature":"-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n"},{"version":"-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};","signature":"-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n"},{"version":"-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;","signature":"-3531856636-export {};\n"},{"version":"-5185546240-import \"./d\";","signature":"-3619301366-import \"./d\";\n"}],"root":[[2,6]],"referencedMap":[[3,1],[4,2],[5,3],[6,4]],"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -787,16 +799,28 @@ Output:: "signature": "-7279094804-import { Point } from \"./a\";\nexport interface PointWrapper extends Point {\n}\n" }, "./c.ts": { + "original": { + "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" + }, "version": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};", - "signature": "-37232372138-import { PointWrapper } from \"./b\";\nexport function getPoint(): PointWrapper {\n return {\n name: \"test\",\n c: {\n x: 1,\n y: 2\n }\n }\n};" + "signature": "-3387333988-import { PointWrapper } from \"./b\";\nexport declare function getPoint(): PointWrapper;\n" }, "./d.ts": { + "original": { + "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", + "signature": "-3531856636-export {};\n" + }, "version": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;", - "signature": "-17875457076-import { getPoint } from \"./c\";\ngetPoint().c.x;" + "signature": "-3531856636-export {};\n" }, "./e.ts": { + "original": { + "version": "-5185546240-import \"./d\";", + "signature": "-3619301366-import \"./d\";\n" + }, "version": "-5185546240-import \"./d\";", - "signature": "-5185546240-import \"./d\";" + "signature": "-3619301366-import \"./d\";\n" } }, "root": [ @@ -829,7 +853,7 @@ Output:: ] }, "version": "FakeTSVersion", - "size": 1508 + "size": 1744 } @@ -865,8 +889,8 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/a.ts (computed .d.ts) /user/username/projects/myproject/b.ts (computed .d.ts) -/user/username/projects/myproject/c.ts (used version) -/user/username/projects/myproject/d.ts (used version) -/user/username/projects/myproject/e.ts (used version) +/user/username/projects/myproject/c.ts (kept existing computed signature) +/user/username/projects/myproject/d.ts (kept existing computed signature) +/user/username/projects/myproject/e.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes.js index 829c47647bfb7..1d6016a50b516 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/file-not-exporting-a-deep-multilevel-import-that-changes.js @@ -319,9 +319,9 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/a.ts (computed .d.ts) /user/username/projects/myproject/b.ts (computed .d.ts) -/user/username/projects/myproject/c.ts (used version) -/user/username/projects/myproject/d.ts (used version) -/user/username/projects/myproject/e.ts (used version) +/user/username/projects/myproject/c.ts (kept existing computed signature) +/user/username/projects/myproject/d.ts (kept existing computed signature) +/user/username/projects/myproject/e.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -389,8 +389,8 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/a.ts (computed .d.ts) /user/username/projects/myproject/b.ts (computed .d.ts) -/user/username/projects/myproject/c.ts (used version) -/user/username/projects/myproject/d.ts (used version) -/user/username/projects/myproject/e.ts (used version) +/user/username/projects/myproject/c.ts (kept existing computed signature) +/user/username/projects/myproject/d.ts (kept existing computed signature) +/user/username/projects/myproject/e.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export-with-incremental.js index 8b5943fc4b582..cae4dd44491f7 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export-with-incremental.js @@ -536,7 +536,7 @@ Output:: //// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.es2025.full.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileIdsList":[[6],[3],[2],[4],[5]],"fileInfos":[{"version":"-25093698414-interface 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":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},"-5078933600-export * from \"./tools/public\";","-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"root":[7],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.es2025.full.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileIdsList":[[6],[3],[2],[4],[5]],"fileInfos":[{"version":"-25093698414-interface 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":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[7],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -593,20 +593,36 @@ Output:: "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { + "original": { + "version": "-5078933600-export * from \"./tools/public\";", + "signature": "-4396051542-export * from \"./tools/public\";\n" + }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-5078933600-export * from \"./tools/public\";" + "signature": "-4396051542-export * from \"./tools/public\";\n" }, "./lib2/data.ts": { + "original": { + "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + }, "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" }, "./lib2/public.ts": { + "original": { + "version": "-9530042629-export * from \"./data\";", + "signature": "-9548728731-export * from \"./data\";\n" + }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9530042629-export * from \"./data\";" + "signature": "-9548728731-export * from \"./data\";\n" }, "./app.ts": { + "original": { + "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n" } }, "root": [ @@ -663,7 +679,7 @@ Output:: ] ], "version": "FakeTSVersion", - "size": 1525 + "size": 1888 } @@ -692,10 +708,10 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) -/user/username/projects/myproject/lib1/public.ts (used version) -/user/username/projects/myproject/lib2/data.ts (used version) -/user/username/projects/myproject/lib2/public.ts (used version) -/user/username/projects/myproject/app.ts (used version) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -733,7 +749,7 @@ Output:: //// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.es2025.full.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileIdsList":[[6],[3],[2],[4],[5]],"fileInfos":[{"version":"-25093698414-interface 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":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},"-5078933600-export * from \"./tools/public\";","-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"root":[7],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.es2025.full.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileIdsList":[[6],[3],[2],[4],[5]],"fileInfos":[{"version":"-25093698414-interface 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":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[7],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -790,20 +806,36 @@ Output:: "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { + "original": { + "version": "-5078933600-export * from \"./tools/public\";", + "signature": "-4396051542-export * from \"./tools/public\";\n" + }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-5078933600-export * from \"./tools/public\";" + "signature": "-4396051542-export * from \"./tools/public\";\n" }, "./lib2/data.ts": { + "original": { + "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" + }, "version": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}" + "signature": "-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n" }, "./lib2/public.ts": { + "original": { + "version": "-9530042629-export * from \"./data\";", + "signature": "-9548728731-export * from \"./data\";\n" + }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9530042629-export * from \"./data\";" + "signature": "-9548728731-export * from \"./data\";\n" }, "./app.ts": { + "original": { + "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n" } }, "root": [ @@ -860,7 +892,7 @@ Output:: ] ], "version": "FakeTSVersion", - "size": 1527 + "size": 1890 } @@ -889,9 +921,9 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) -/user/username/projects/myproject/lib1/public.ts (used version) -/user/username/projects/myproject/lib2/data.ts (used version) -/user/username/projects/myproject/lib2/public.ts (used version) -/user/username/projects/myproject/app.ts (used version) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export.js index 5a535862d7ad0..ad1f61fb627b0 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export.js @@ -288,10 +288,10 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) -/user/username/projects/myproject/lib1/public.ts (used version) -/user/username/projects/myproject/lib2/data.ts (used version) -/user/username/projects/myproject/lib2/public.ts (used version) -/user/username/projects/myproject/app.ts (used version) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -353,9 +353,9 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) -/user/username/projects/myproject/lib1/public.ts (used version) -/user/username/projects/myproject/lib2/data.ts (used version) -/user/username/projects/myproject/lib2/public.ts (used version) -/user/username/projects/myproject/app.ts (used version) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports-with-incremental.js index fdde26a37861e..6229c522bf525 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports-with-incremental.js @@ -588,7 +588,7 @@ Output:: //// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.es2025.full.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileIdsList":[[7],[3],[2],[4,5],[6]],"fileInfos":[{"version":"-25093698414-interface 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":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},"-5078933600-export * from \"./tools/public\";","-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"root":[8],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7,8],"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.es2025.full.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileIdsList":[[7],[3],[2],[4,5],[6]],"fileInfos":[{"version":"-25093698414-interface 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":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[8],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7,8],"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -647,24 +647,44 @@ Output:: "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { + "original": { + "version": "-5078933600-export * from \"./tools/public\";", + "signature": "-4396051542-export * from \"./tools/public\";\n" + }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-5078933600-export * from \"./tools/public\";" + "signature": "-4396051542-export * from \"./tools/public\";\n" }, "./lib2/data2.ts": { + "original": { + "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + }, "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" }, "./lib2/data.ts": { + "original": { + "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + }, "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" }, "./lib2/public.ts": { + "original": { + "version": "-9530042629-export * from \"./data\";", + "signature": "-9548728731-export * from \"./data\";\n" + }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9530042629-export * from \"./data\";" + "signature": "-9548728731-export * from \"./data\";\n" }, "./app.ts": { + "original": { + "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n" } }, "root": [ @@ -729,7 +749,7 @@ Output:: ] ], "version": "FakeTSVersion", - "size": 1704 + "size": 2245 } @@ -759,11 +779,11 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) -/user/username/projects/myproject/lib1/public.ts (used version) -/user/username/projects/myproject/lib2/data.ts (used version) -/user/username/projects/myproject/lib2/data2.ts (used version) -/user/username/projects/myproject/lib2/public.ts (used version) -/user/username/projects/myproject/app.ts (used version) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data2.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -801,7 +821,7 @@ Output:: //// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.es2025.full.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileIdsList":[[7],[3],[2],[4,5],[6]],"fileInfos":[{"version":"-25093698414-interface 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":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},"-5078933600-export * from \"./tools/public\";","-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"root":[8],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7,8],"version":"FakeTSVersion"} +{"fileNames":["../../../../home/src/tslibs/ts/lib/lib.es2025.full.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileIdsList":[[7],[3],[2],[4,5],[6]],"fileInfos":[{"version":"-25093698414-interface 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":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"root":[8],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7,8],"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -860,24 +880,44 @@ Output:: "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { + "original": { + "version": "-5078933600-export * from \"./tools/public\";", + "signature": "-4396051542-export * from \"./tools/public\";\n" + }, "version": "-5078933600-export * from \"./tools/public\";", - "signature": "-5078933600-export * from \"./tools/public\";" + "signature": "-4396051542-export * from \"./tools/public\";\n" }, "./lib2/data2.ts": { + "original": { + "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" + }, "version": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}", - "signature": "-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}" + "signature": "-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n" }, "./lib2/data.ts": { + "original": { + "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" + }, "version": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}", - "signature": "-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}" + "signature": "-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n" }, "./lib2/public.ts": { + "original": { + "version": "-9530042629-export * from \"./data\";", + "signature": "-9548728731-export * from \"./data\";\n" + }, "version": "-9530042629-export * from \"./data\";", - "signature": "-9530042629-export * from \"./data\";" + "signature": "-9548728731-export * from \"./data\";\n" }, "./app.ts": { + "original": { + "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", + "signature": "-18990360330-export declare class App {\n constructor();\n}\n" + }, "version": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}", - "signature": "-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}" + "signature": "-18990360330-export declare class App {\n constructor();\n}\n" } }, "root": [ @@ -942,7 +982,7 @@ Output:: ] ], "version": "FakeTSVersion", - "size": 1706 + "size": 2247 } @@ -972,10 +1012,10 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) -/user/username/projects/myproject/lib1/public.ts (used version) -/user/username/projects/myproject/lib2/data.ts (used version) -/user/username/projects/myproject/lib2/data2.ts (used version) -/user/username/projects/myproject/lib2/public.ts (used version) -/user/username/projects/myproject/app.ts (used version) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data2.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports.js index d36a1efd7aead..ec3425b043767 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports.js @@ -309,11 +309,11 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) -/user/username/projects/myproject/lib1/public.ts (used version) -/user/username/projects/myproject/lib2/data.ts (used version) -/user/username/projects/myproject/lib2/data2.ts (used version) -/user/username/projects/myproject/lib2/public.ts (used version) -/user/username/projects/myproject/app.ts (used version) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data2.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -376,10 +376,10 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) -/user/username/projects/myproject/lib1/public.ts (used version) -/user/username/projects/myproject/lib2/data.ts (used version) -/user/username/projects/myproject/lib2/data2.ts (used version) -/user/username/projects/myproject/lib2/public.ts (used version) -/user/username/projects/myproject/app.ts (used version) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data2.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js index 27bd7df9651c8..2270a6eada176 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js @@ -336,7 +336,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.d.ts (used version) /user/username/projects/myproject/b.d.ts (used version) -/user/username/projects/myproject/a.ts (computed .d.ts during emit) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -469,7 +469,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.d.ts (used version) /user/username/projects/myproject/b.d.ts (used version) -/user/username/projects/myproject/a.ts (computed .d.ts during emit) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -621,6 +621,6 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.d.ts (used version) /user/username/projects/myproject/b.d.ts (used version) -/user/username/projects/myproject/a.ts (computed .d.ts during emit) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change.js index 980d9a6e6ac5f..cf2f9d7527477 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.d.ts-change.js @@ -167,7 +167,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.d.ts (used version) /user/username/projects/myproject/b.d.ts (used version) -/user/username/projects/myproject/a.ts (computed .d.ts during emit) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -225,7 +225,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.d.ts (used version) /user/username/projects/myproject/b.d.ts (used version) -/user/username/projects/myproject/a.ts (computed .d.ts during emit) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -288,6 +288,6 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.d.ts (used version) /user/username/projects/myproject/b.d.ts (used version) -/user/username/projects/myproject/a.ts (computed .d.ts during emit) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js index 9a104f601d878..56271e30cc8e8 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js @@ -385,7 +385,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.ts (computed .d.ts) /user/username/projects/myproject/b.ts (computed .d.ts) -/user/username/projects/myproject/a.ts (computed .d.ts during emit) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -540,7 +540,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.ts (computed .d.ts) /user/username/projects/myproject/b.ts (computed .d.ts) -/user/username/projects/myproject/a.ts (computed .d.ts during emit) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -714,6 +714,6 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.ts (computed .d.ts) /user/username/projects/myproject/b.ts (computed .d.ts) -/user/username/projects/myproject/a.ts (computed .d.ts during emit) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change.js index c559138d32323..1f184f49def96 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/deepImportChanges/errors-for-.ts-change.js @@ -205,7 +205,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.ts (computed .d.ts) /user/username/projects/myproject/b.ts (computed .d.ts) -/user/username/projects/myproject/a.ts (computed .d.ts during emit) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -277,7 +277,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.ts (computed .d.ts) /user/username/projects/myproject/b.ts (computed .d.ts) -/user/username/projects/myproject/a.ts (computed .d.ts during emit) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -354,6 +354,6 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.ts (computed .d.ts) /user/username/projects/myproject/b.ts (computed .d.ts) -/user/username/projects/myproject/a.ts (computed .d.ts during emit) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js index b50fbb79474bb..85c68c4547fcc 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js @@ -544,9 +544,9 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/a.ts (computed .d.ts) /user/username/projects/myproject/b.ts (computed .d.ts) -/user/username/projects/myproject/c.ts (computed .d.ts during emit) -/user/username/projects/myproject/d.ts (computed .d.ts during emit) -/user/username/projects/myproject/e.ts (computed .d.ts during emit) +/user/username/projects/myproject/c.ts (kept existing computed signature) +/user/username/projects/myproject/d.ts (kept existing computed signature) +/user/username/projects/myproject/e.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -796,9 +796,9 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/a.ts (computed .d.ts) /user/username/projects/myproject/b.ts (computed .d.ts) -/user/username/projects/myproject/c.ts (computed .d.ts during emit) -/user/username/projects/myproject/d.ts (computed .d.ts during emit) -/user/username/projects/myproject/e.ts (computed .d.ts during emit) +/user/username/projects/myproject/c.ts (kept existing computed signature) +/user/username/projects/myproject/d.ts (kept existing computed signature) +/user/username/projects/myproject/e.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -997,8 +997,8 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/a.ts (computed .d.ts) /user/username/projects/myproject/b.ts (computed .d.ts) -/user/username/projects/myproject/c.ts (computed .d.ts during emit) -/user/username/projects/myproject/d.ts (computed .d.ts during emit) -/user/username/projects/myproject/e.ts (computed .d.ts during emit) +/user/username/projects/myproject/c.ts (kept existing computed signature) +/user/username/projects/myproject/d.ts (kept existing computed signature) +/user/username/projects/myproject/e.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js index 51ef8f406fc51..62f48a10cb955 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js @@ -278,9 +278,9 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/a.ts (computed .d.ts) /user/username/projects/myproject/b.ts (computed .d.ts) -/user/username/projects/myproject/c.ts (computed .d.ts during emit) -/user/username/projects/myproject/d.ts (computed .d.ts during emit) -/user/username/projects/myproject/e.ts (computed .d.ts during emit) +/user/username/projects/myproject/c.ts (kept existing computed signature) +/user/username/projects/myproject/d.ts (kept existing computed signature) +/user/username/projects/myproject/e.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -379,9 +379,9 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/a.ts (computed .d.ts) /user/username/projects/myproject/b.ts (computed .d.ts) -/user/username/projects/myproject/c.ts (computed .d.ts during emit) -/user/username/projects/myproject/d.ts (computed .d.ts during emit) -/user/username/projects/myproject/e.ts (computed .d.ts during emit) +/user/username/projects/myproject/c.ts (kept existing computed signature) +/user/username/projects/myproject/d.ts (kept existing computed signature) +/user/username/projects/myproject/e.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -465,8 +465,8 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/a.ts (computed .d.ts) /user/username/projects/myproject/b.ts (computed .d.ts) -/user/username/projects/myproject/c.ts (computed .d.ts during emit) -/user/username/projects/myproject/d.ts (computed .d.ts during emit) -/user/username/projects/myproject/e.ts (computed .d.ts during emit) +/user/username/projects/myproject/c.ts (kept existing computed signature) +/user/username/projects/myproject/d.ts (kept existing computed signature) +/user/username/projects/myproject/e.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export-with-incremental.js index 029f4126ad6d8..554fd09ae96c9 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export-with-incremental.js @@ -565,10 +565,10 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) -/user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/app.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -793,10 +793,10 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) -/user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/app.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -1021,9 +1021,9 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) -/user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/app.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export.js index be92d2ddf3d4e..eadf0cacd1687 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export.js @@ -263,10 +263,10 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) -/user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/app.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -340,10 +340,10 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) -/user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/app.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -417,9 +417,9 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) -/user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/app.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports-with-incremental.js index 51e1f493528f7..45b6cdecee463 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports-with-incremental.js @@ -629,11 +629,11 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) -/user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data2.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/app.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data2.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -878,11 +878,11 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) -/user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data2.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/app.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data2.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -1127,10 +1127,10 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) -/user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data2.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/app.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data2.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports.js index ddb14f876e582..11224c247b7b6 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports.js @@ -291,11 +291,11 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) -/user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data2.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/app.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data2.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -371,11 +371,11 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) -/user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data2.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/app.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data2.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -451,10 +451,10 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) -/user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data2.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/app.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data2.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js index 0211dab185b72..f610f4616693c 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change-with-incremental.js @@ -338,7 +338,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.d.ts (used version) /user/username/projects/myproject/b.d.ts (used version) -/user/username/projects/myproject/a.ts (computed .d.ts during emit) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -472,7 +472,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.d.ts (used version) /user/username/projects/myproject/b.d.ts (used version) -/user/username/projects/myproject/a.ts (computed .d.ts during emit) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -625,6 +625,6 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.d.ts (used version) /user/username/projects/myproject/b.d.ts (used version) -/user/username/projects/myproject/a.ts (computed .d.ts during emit) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change.js index 817950f5f07ab..80dff44b1fc13 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.d.ts-change.js @@ -169,7 +169,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.d.ts (used version) /user/username/projects/myproject/b.d.ts (used version) -/user/username/projects/myproject/a.ts (computed .d.ts during emit) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -228,7 +228,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.d.ts (used version) /user/username/projects/myproject/b.d.ts (used version) -/user/username/projects/myproject/a.ts (computed .d.ts during emit) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -292,6 +292,6 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.d.ts (used version) /user/username/projects/myproject/b.d.ts (used version) -/user/username/projects/myproject/a.ts (computed .d.ts during emit) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js index 0c60d12a3273a..239b83ff8ce83 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change-with-incremental.js @@ -385,8 +385,8 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.ts (computed .d.ts) -/user/username/projects/myproject/b.ts (computed .d.ts during emit) -/user/username/projects/myproject/a.ts (computed .d.ts during emit) +/user/username/projects/myproject/b.ts (kept existing computed signature) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -540,8 +540,8 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.ts (computed .d.ts) -/user/username/projects/myproject/b.ts (computed .d.ts during emit) -/user/username/projects/myproject/a.ts (computed .d.ts during emit) +/user/username/projects/myproject/b.ts (kept existing computed signature) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -714,7 +714,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.ts (computed .d.ts) -/user/username/projects/myproject/b.ts (computed .d.ts during emit) -/user/username/projects/myproject/a.ts (computed .d.ts during emit) +/user/username/projects/myproject/b.ts (kept existing computed signature) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change.js index 3869dcf726848..d63176d0de729 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/deepImportChanges/errors-for-.ts-change.js @@ -205,8 +205,8 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.ts (computed .d.ts) -/user/username/projects/myproject/b.ts (computed .d.ts during emit) -/user/username/projects/myproject/a.ts (computed .d.ts during emit) +/user/username/projects/myproject/b.ts (kept existing computed signature) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -277,8 +277,8 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.ts (computed .d.ts) -/user/username/projects/myproject/b.ts (computed .d.ts during emit) -/user/username/projects/myproject/a.ts (computed .d.ts during emit) +/user/username/projects/myproject/b.ts (kept existing computed signature) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -354,7 +354,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/c.ts (computed .d.ts) -/user/username/projects/myproject/b.ts (computed .d.ts during emit) -/user/username/projects/myproject/a.ts (computed .d.ts during emit) +/user/username/projects/myproject/b.ts (kept existing computed signature) +/user/username/projects/myproject/a.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js index a9aef518c3b9e..a1947b2b46874 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes-with-incremental.js @@ -544,10 +544,10 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/a.ts (computed .d.ts) -/user/username/projects/myproject/b.ts (computed .d.ts during emit) -/user/username/projects/myproject/c.ts (computed .d.ts during emit) -/user/username/projects/myproject/d.ts (computed .d.ts during emit) -/user/username/projects/myproject/e.ts (computed .d.ts during emit) +/user/username/projects/myproject/b.ts (kept existing computed signature) +/user/username/projects/myproject/c.ts (kept existing computed signature) +/user/username/projects/myproject/d.ts (kept existing computed signature) +/user/username/projects/myproject/e.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -796,10 +796,10 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/a.ts (computed .d.ts) -/user/username/projects/myproject/b.ts (computed .d.ts during emit) -/user/username/projects/myproject/c.ts (computed .d.ts during emit) -/user/username/projects/myproject/d.ts (computed .d.ts during emit) -/user/username/projects/myproject/e.ts (computed .d.ts during emit) +/user/username/projects/myproject/b.ts (kept existing computed signature) +/user/username/projects/myproject/c.ts (kept existing computed signature) +/user/username/projects/myproject/d.ts (kept existing computed signature) +/user/username/projects/myproject/e.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -997,9 +997,9 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/a.ts (computed .d.ts) -/user/username/projects/myproject/b.ts (computed .d.ts during emit) -/user/username/projects/myproject/c.ts (computed .d.ts during emit) -/user/username/projects/myproject/d.ts (computed .d.ts during emit) -/user/username/projects/myproject/e.ts (computed .d.ts during emit) +/user/username/projects/myproject/b.ts (kept existing computed signature) +/user/username/projects/myproject/c.ts (kept existing computed signature) +/user/username/projects/myproject/d.ts (kept existing computed signature) +/user/username/projects/myproject/e.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js index cabe8a0deaa52..ef9de3a9d3a96 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/file-not-exporting-a-deep-multilevel-import-that-changes.js @@ -278,10 +278,10 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/a.ts (computed .d.ts) -/user/username/projects/myproject/b.ts (computed .d.ts during emit) -/user/username/projects/myproject/c.ts (computed .d.ts during emit) -/user/username/projects/myproject/d.ts (computed .d.ts during emit) -/user/username/projects/myproject/e.ts (computed .d.ts during emit) +/user/username/projects/myproject/b.ts (kept existing computed signature) +/user/username/projects/myproject/c.ts (kept existing computed signature) +/user/username/projects/myproject/d.ts (kept existing computed signature) +/user/username/projects/myproject/e.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -379,10 +379,10 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/a.ts (computed .d.ts) -/user/username/projects/myproject/b.ts (computed .d.ts during emit) -/user/username/projects/myproject/c.ts (computed .d.ts during emit) -/user/username/projects/myproject/d.ts (computed .d.ts during emit) -/user/username/projects/myproject/e.ts (computed .d.ts during emit) +/user/username/projects/myproject/b.ts (kept existing computed signature) +/user/username/projects/myproject/c.ts (kept existing computed signature) +/user/username/projects/myproject/d.ts (kept existing computed signature) +/user/username/projects/myproject/e.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -465,9 +465,9 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/a.ts (computed .d.ts) -/user/username/projects/myproject/b.ts (computed .d.ts during emit) -/user/username/projects/myproject/c.ts (computed .d.ts during emit) -/user/username/projects/myproject/d.ts (computed .d.ts during emit) -/user/username/projects/myproject/e.ts (computed .d.ts during emit) +/user/username/projects/myproject/b.ts (kept existing computed signature) +/user/username/projects/myproject/c.ts (kept existing computed signature) +/user/username/projects/myproject/d.ts (kept existing computed signature) +/user/username/projects/myproject/e.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export-with-incremental.js index 541097ae1ddfb..8953cfd544cc4 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export-with-incremental.js @@ -565,11 +565,11 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) -/user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/app.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/tools/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -793,11 +793,11 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) -/user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/app.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/tools/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -1021,10 +1021,10 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) -/user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/app.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/tools/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export.js index 2595d25260221..9866560e9b8da 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export.js @@ -263,11 +263,11 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) -/user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/app.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/tools/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -340,11 +340,11 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) -/user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/app.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/tools/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -417,10 +417,10 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) -/user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/app.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/tools/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js index cb5183af0f7a6..aefa8ea6cb57d 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js @@ -629,12 +629,12 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) -/user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/app.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data2.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/tools/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data2.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -878,12 +878,12 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) -/user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/app.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data2.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/tools/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data2.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -1127,11 +1127,11 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) -/user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/app.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data2.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/tools/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data2.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports.js index 43853fad36e89..2356d93280cfd 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports.js @@ -291,12 +291,12 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) -/user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/app.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data2.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/tools/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data2.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -371,12 +371,12 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) -/user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/app.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data2.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/tools/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data2.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined @@ -451,11 +451,11 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) -/user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/public.ts (computed .d.ts during emit) -/user/username/projects/myproject/app.ts (computed .d.ts during emit) -/user/username/projects/myproject/lib2/data2.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/tools/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib1/public.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/data2.ts (kept existing computed signature) +/user/username/projects/myproject/lib2/public.ts (kept existing computed signature) +/user/username/projects/myproject/app.ts (kept existing computed signature) exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders-with-no-files-clause.js b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders-with-no-files-clause.js index 44c581f5e38a4..c5b781f8d2c5f 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders-with-no-files-clause.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders-with-no-files-clause.js @@ -1053,7 +1053,7 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/transitivereferences/nrefs/a.d.ts (used version) /user/username/projects/transitivereferences/b/index.d.ts (used version) -/user/username/projects/transitivereferences/c/index.ts (used version) +/user/username/projects/transitivereferences/c/index.ts (kept existing computed signature) Dependencies for:: /home/src/tslibs/TS/Lib/lib.es2025.full.d.ts: @@ -1652,7 +1652,7 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/transitivereferences/a/index.ts (computed .d.ts) /user/username/projects/transitivereferences/b/index.d.ts (used version) -/user/username/projects/transitivereferences/c/index.ts (used version) +/user/username/projects/transitivereferences/c/index.ts (kept existing computed signature) Dependencies for:: /home/src/tslibs/TS/Lib/lib.es2025.full.d.ts: @@ -1795,7 +1795,7 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/transitivereferences/a/index.d.ts (used version) /user/username/projects/transitivereferences/b/index.d.ts (used version) -/user/username/projects/transitivereferences/c/index.ts (used version) +/user/username/projects/transitivereferences/c/index.ts (kept existing computed signature) Dependencies for:: /home/src/tslibs/TS/Lib/lib.es2025.full.d.ts: diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders.js b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders.js index 7015a335125f4..d069386b4149a 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-in-different-folders.js @@ -1065,7 +1065,7 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/transitivereferences/nrefs/a.d.ts (used version) /user/username/projects/transitivereferences/b/index.d.ts (used version) -/user/username/projects/transitivereferences/c/index.ts (used version) +/user/username/projects/transitivereferences/c/index.ts (kept existing computed signature) Dependencies for:: /home/src/tslibs/TS/Lib/lib.es2025.full.d.ts: @@ -1656,7 +1656,7 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/transitivereferences/a/index.ts (computed .d.ts) /user/username/projects/transitivereferences/b/index.d.ts (used version) -/user/username/projects/transitivereferences/c/index.ts (used version) +/user/username/projects/transitivereferences/c/index.ts (kept existing computed signature) Dependencies for:: /home/src/tslibs/TS/Lib/lib.es2025.full.d.ts: @@ -1800,7 +1800,7 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/transitivereferences/a/index.d.ts (used version) /user/username/projects/transitivereferences/b/index.d.ts (used version) -/user/username/projects/transitivereferences/c/index.ts (used version) +/user/username/projects/transitivereferences/c/index.ts (kept existing computed signature) Dependencies for:: /home/src/tslibs/TS/Lib/lib.es2025.full.d.ts: diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-with-nodenext.js b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-with-nodenext.js index 24c622d041081..e9def7637b5c1 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-with-nodenext.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references-with-nodenext.js @@ -1308,7 +1308,7 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/transitivereferences/nrefs/a.d.ts (used version) /user/username/projects/transitivereferences/b.d.ts (used version) -/user/username/projects/transitivereferences/c.ts (used version) +/user/username/projects/transitivereferences/c.ts (kept existing computed signature) Dependencies for:: /home/src/tslibs/TS/Lib/lib.es6.d.ts: @@ -2048,7 +2048,7 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/transitivereferences/a.ts (computed .d.ts) /user/username/projects/transitivereferences/b.d.ts (used version) -/user/username/projects/transitivereferences/c.ts (used version) +/user/username/projects/transitivereferences/c.ts (kept existing computed signature) Dependencies for:: /home/src/tslibs/TS/Lib/lib.es6.d.ts: @@ -2230,7 +2230,7 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/transitivereferences/a.d.ts (used version) /user/username/projects/transitivereferences/b.d.ts (used version) -/user/username/projects/transitivereferences/c.ts (used version) +/user/username/projects/transitivereferences/c.ts (kept existing computed signature) Dependencies for:: /home/src/tslibs/TS/Lib/lib.es6.d.ts: diff --git a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references.js b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references.js index 5c43abcf350c1..13fa17b4ac84e 100644 --- a/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references.js +++ b/tests/baselines/reference/tscWatch/projectsWithReferences/on-transitive-references.js @@ -1023,7 +1023,7 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/transitivereferences/nrefs/a.d.ts (used version) /user/username/projects/transitivereferences/b.d.ts (used version) -/user/username/projects/transitivereferences/c.ts (used version) +/user/username/projects/transitivereferences/c.ts (kept existing computed signature) Dependencies for:: /home/src/tslibs/TS/Lib/lib.es2025.full.d.ts: @@ -1579,7 +1579,7 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/transitivereferences/a.ts (computed .d.ts) /user/username/projects/transitivereferences/b.d.ts (used version) -/user/username/projects/transitivereferences/c.ts (used version) +/user/username/projects/transitivereferences/c.ts (kept existing computed signature) Dependencies for:: /home/src/tslibs/TS/Lib/lib.es2025.full.d.ts: @@ -1712,7 +1712,7 @@ No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/transitivereferences/a.d.ts (used version) /user/username/projects/transitivereferences/b.d.ts (used version) -/user/username/projects/transitivereferences/c.ts (used version) +/user/username/projects/transitivereferences/c.ts (kept existing computed signature) Dependencies for:: /home/src/tslibs/TS/Lib/lib.es2025.full.d.ts: diff --git a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project-when-solution-is-already-built.js b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project-when-solution-is-already-built.js index 3be0f771fdb66..9c114629b7ad7 100644 --- a/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project-when-solution-is-already-built.js +++ b/tests/baselines/reference/tscWatch/sourceOfProjectReferenceRedirect/with-simple-project-when-solution-is-already-built.js @@ -539,6 +539,6 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/demo/core/utilities.ts (computed .d.ts) /user/username/projects/demo/animals/dog.ts (computed .d.ts) -/user/username/projects/demo/animals/index.ts (computed .d.ts during emit) +/user/username/projects/demo/animals/index.ts (kept existing computed signature) exitCode:: ExitStatus.undefined