diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index ce4a4e66453..366bf3c3986 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -246,7 +246,7 @@ namespace ts { if (oldCompilerOptions && compilerOptionsAffectEmit(compilerOptions, oldCompilerOptions)) { // Add all files to affectedFilesPendingEmit since emit changed - newProgram.getSourceFiles().forEach(f => addToAffectedFilesPendingEmit(state, f.path, BuilderFileEmit.Full)); + newProgram.getSourceFiles().forEach(f => addToAffectedFilesPendingEmit(state, f.resolvedPath, BuilderFileEmit.Full)); Debug.assert(state.seenAffectedFiles === undefined); state.seenAffectedFiles = createMap(); } @@ -321,7 +321,7 @@ namespace ts { * Verifies that source file is ok to be used in calls that arent handled by next */ function assertSourceFileOkWithoutNextAffectedCall(state: BuilderProgramState, sourceFile: SourceFile | undefined) { - Debug.assert(!sourceFile || !state.affectedFiles || state.affectedFiles[state.affectedFilesIndex! - 1] !== sourceFile || !state.semanticDiagnosticsPerFile!.has(sourceFile.path)); + Debug.assert(!sourceFile || !state.affectedFiles || state.affectedFiles[state.affectedFilesIndex! - 1] !== sourceFile || !state.semanticDiagnosticsPerFile!.has(sourceFile.resolvedPath)); } /** @@ -338,7 +338,7 @@ namespace ts { let affectedFilesIndex = state.affectedFilesIndex!; // TODO: GH#18217 while (affectedFilesIndex < affectedFiles.length) { const affectedFile = affectedFiles[affectedFilesIndex]; - if (!seenAffectedFiles.has(affectedFile.path)) { + if (!seenAffectedFiles.has(affectedFile.resolvedPath)) { // Set the next affected file as seen and remove the cached semantic diagnostics state.affectedFilesIndex = affectedFilesIndex; handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken, computeHash); @@ -395,8 +395,8 @@ namespace ts { for (let i = state.affectedFilesPendingEmitIndex!; i < affectedFilesPendingEmit.length; i++) { const affectedFile = Debug.assertDefined(state.program).getSourceFileByPath(affectedFilesPendingEmit[i]); if (affectedFile) { - const seenKind = seenEmittedFiles.get(affectedFile.path); - const emitKind = Debug.assertDefined(Debug.assertDefined(state.affectedFilesPendingEmitKind).get(affectedFile.path)); + const seenKind = seenEmittedFiles.get(affectedFile.resolvedPath); + const emitKind = Debug.assertDefined(Debug.assertDefined(state.affectedFilesPendingEmitKind).get(affectedFile.resolvedPath)); if (seenKind === undefined || seenKind < emitKind) { // emit this file state.affectedFilesPendingEmitIndex = i; @@ -416,7 +416,7 @@ namespace ts { * This is because even though js emit doesnt change, dts emit / type used can change resulting in need for dts emit and js change */ function handleDtsMayChangeOfAffectedFile(state: BuilderProgramState, affectedFile: SourceFile, cancellationToken: CancellationToken | undefined, computeHash: BuilderState.ComputeHash) { - removeSemanticDiagnosticsOf(state, affectedFile.path); + removeSemanticDiagnosticsOf(state, affectedFile.resolvedPath); // If affected files is everything except default library, then nothing more to do if (state.allFilesExcludingDefaultLibraryFile === state.affectedFiles) { @@ -427,7 +427,7 @@ namespace ts { forEach(program.getSourceFiles(), f => program.isSourceFileDefaultLibrary(f) && !skipTypeChecking(f, options, program) && - removeSemanticDiagnosticsOf(state, f.path) + removeSemanticDiagnosticsOf(state, f.resolvedPath) ); } return; @@ -495,17 +495,17 @@ namespace ts { function forEachReferencingModulesOfExportOfAffectedFile(state: BuilderProgramState, affectedFile: SourceFile, fn: (state: BuilderProgramState, filePath: Path) => boolean) { // If there was change in signature (dts output) for the changed file, // then only we need to handle pending file emit - if (!state.exportedModulesMap || !state.changedFilesSet.has(affectedFile.path)) { + if (!state.exportedModulesMap || !state.changedFilesSet.has(affectedFile.resolvedPath)) { return; } - if (!isChangedSignagure(state, affectedFile.path)) return; + if (!isChangedSignagure(state, affectedFile.resolvedPath)) return; // Since isolated modules dont change js files, files affected by change in signature is itself // But we need to cleanup semantic diagnostics and queue dts emit for affected files if (state.compilerOptions.isolatedModules) { const seenFileNamesMap = createMap(); - seenFileNamesMap.set(affectedFile.path, true); + seenFileNamesMap.set(affectedFile.resolvedPath, true); const queue = BuilderState.getReferencedByPaths(state, affectedFile.resolvedPath); while (queue.length > 0) { const currentPath = queue.pop()!; @@ -526,7 +526,7 @@ namespace ts { // If exported modules has path, all files referencing file exported from are affected if (forEachEntry(state.currentAffectedFilesExportedModulesMap!, (exportedModules, exportedFromPath) => exportedModules && - exportedModules.has(affectedFile.path) && + exportedModules.has(affectedFile.resolvedPath) && forEachFilesReferencingPath(state, exportedFromPath as Path, seenFileAndExportsOfFile, fn) )) { return; @@ -535,7 +535,7 @@ namespace ts { // If exported from path is not from cache and exported modules has path, all files referencing file exported from are affected forEachEntry(state.exportedModulesMap, (exportedModules, exportedFromPath) => !state.currentAffectedFilesExportedModulesMap!.has(exportedFromPath) && // If we already iterated this through cache, ignore it - exportedModules.has(affectedFile.path) && + exportedModules.has(affectedFile.resolvedPath) && forEachFilesReferencingPath(state, exportedFromPath as Path, seenFileAndExportsOfFile, fn) ); } @@ -610,9 +610,9 @@ namespace ts { state.programEmitComplete = true; } else { - state.seenAffectedFiles!.set((affected as SourceFile).path, true); + state.seenAffectedFiles!.set((affected as SourceFile).resolvedPath, true); if (emitKind !== undefined) { - (state.seenEmittedFiles || (state.seenEmittedFiles = createMap())).set((affected as SourceFile).path, emitKind); + (state.seenEmittedFiles || (state.seenEmittedFiles = createMap())).set((affected as SourceFile).resolvedPath, emitKind); } if (isPendingEmit) { state.affectedFilesPendingEmitIndex!++; @@ -662,7 +662,7 @@ namespace ts { * Note that it is assumed that when asked about binder and checker diagnostics, the file has been taken out of affected files/changed file set */ function getBinderAndCheckerDiagnosticsOfFile(state: BuilderProgramState, sourceFile: SourceFile, cancellationToken?: CancellationToken): readonly Diagnostic[] { - const path = sourceFile.path; + const path = sourceFile.resolvedPath; if (state.semanticDiagnosticsPerFile) { const cachedDiagnostics = state.semanticDiagnosticsPerFile.get(path); // Report the bind and check diagnostics from the cache if we already have those diagnostics present @@ -806,7 +806,7 @@ namespace ts { const { file } = diagnostic; return { ...diagnostic, - file: file ? relativeToBuildInfo(file.path) : undefined + file: file ? relativeToBuildInfo(file.resolvedPath) : undefined }; } @@ -1032,7 +1032,7 @@ namespace ts { // Add file to affected file pending emit to handle for later emit time if (kind === BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram) { - addToAffectedFilesPendingEmit(state, (affected as SourceFile).path, BuilderFileEmit.Full); + addToAffectedFilesPendingEmit(state, (affected as SourceFile).resolvedPath, BuilderFileEmit.Full); } // Get diagnostics for the affected file if its not ignored diff --git a/src/compiler/builderState.ts b/src/compiler/builderState.ts index bb2272cff8e..730f82017f4 100644 --- a/src/compiler/builderState.ts +++ b/src/compiler/builderState.ts @@ -128,7 +128,7 @@ namespace ts { } } - const sourceFileDirectory = getDirectoryPath(sourceFile.path); + const sourceFileDirectory = getDirectoryPath(sourceFile.resolvedPath); // Handle triple slash references if (sourceFile.referencedFiles && sourceFile.referencedFiles.length > 0) { for (const referencedFile of sourceFile.referencedFiles) { @@ -211,21 +211,21 @@ namespace ts { // Create the reference map, and set the file infos for (const sourceFile of newProgram.getSourceFiles()) { const version = Debug.assertDefined(sourceFile.version, "Program intended to be used with Builder should have source files with versions set"); - const oldInfo = useOldState ? oldState!.fileInfos.get(sourceFile.path) : undefined; + const oldInfo = useOldState ? oldState!.fileInfos.get(sourceFile.resolvedPath) : undefined; if (referencedMap) { const newReferences = getReferencedFiles(newProgram, sourceFile, getCanonicalFileName); if (newReferences) { - referencedMap.set(sourceFile.path, newReferences); + referencedMap.set(sourceFile.resolvedPath, newReferences); } // Copy old visible to outside files map if (useOldState) { - const exportedModules = oldState!.exportedModulesMap!.get(sourceFile.path); + const exportedModules = oldState!.exportedModulesMap!.get(sourceFile.resolvedPath); if (exportedModules) { - exportedModulesMap!.set(sourceFile.path, exportedModules); + exportedModulesMap!.set(sourceFile.resolvedPath, exportedModules); } } } - fileInfos.set(sourceFile.path, { version, signature: oldInfo && oldInfo.signature }); + fileInfos.set(sourceFile.resolvedPath, { version, signature: oldInfo && oldInfo.signature }); } return { @@ -306,11 +306,11 @@ namespace ts { Debug.assert(!exportedModulesMapCache || !!state.exportedModulesMap, "Compute visible to outside map only if visibleToOutsideReferencedMap present in the state"); // If we have cached the result for this file, that means hence forth we should assume file shape is uptodate - if (state.hasCalledUpdateShapeSignature.has(sourceFile.path) || cacheToUpdateSignature.has(sourceFile.path)) { + if (state.hasCalledUpdateShapeSignature.has(sourceFile.resolvedPath) || cacheToUpdateSignature.has(sourceFile.resolvedPath)) { return false; } - const info = state.fileInfos.get(sourceFile.path); + const info = state.fileInfos.get(sourceFile.resolvedPath); if (!info) return Debug.fail(); const prevSignature = info.signature; @@ -319,8 +319,8 @@ namespace ts { latestSignature = sourceFile.version; if (exportedModulesMapCache && latestSignature !== prevSignature) { // All the references in this file are exported - const references = state.referencedMap ? state.referencedMap.get(sourceFile.path) : undefined; - exportedModulesMapCache.set(sourceFile.path, references || false); + const references = state.referencedMap ? state.referencedMap.get(sourceFile.resolvedPath) : undefined; + exportedModulesMapCache.set(sourceFile.resolvedPath, references || false); } } else { @@ -348,7 +348,7 @@ namespace ts { } } - cacheToUpdateSignature.set(sourceFile.path, latestSignature); + cacheToUpdateSignature.set(sourceFile.resolvedPath, latestSignature); return !prevSignature || latestSignature !== prevSignature; } @@ -358,13 +358,13 @@ namespace ts { */ function updateExportedModules(sourceFile: SourceFile, exportedModulesFromDeclarationEmit: ExportedModulesFromDeclarationEmit | undefined, exportedModulesMapCache: ComputingExportedModulesMap) { if (!exportedModulesFromDeclarationEmit) { - exportedModulesMapCache.set(sourceFile.path, false); + exportedModulesMapCache.set(sourceFile.resolvedPath, false); return; } let exportedModules: Map | undefined; exportedModulesFromDeclarationEmit.forEach(symbol => addExportedModule(getReferencedFileFromImportedModuleSymbol(symbol))); - exportedModulesMapCache.set(sourceFile.path, exportedModules || false); + exportedModulesMapCache.set(sourceFile.resolvedPath, exportedModules || false); function addExportedModule(exportedModulePath: Path | undefined) { if (exportedModulePath) { @@ -411,7 +411,7 @@ namespace ts { // Get the references, traversing deep from the referenceMap const seenMap = createMap(); - const queue = [sourceFile.path]; + const queue = [sourceFile.resolvedPath]; while (queue.length) { const path = queue.pop()!; if (!seenMap.has(path)) { @@ -541,7 +541,7 @@ namespace ts { const seenFileNamesMap = createMap(); // Start with the paths this file was referenced by - seenFileNamesMap.set(sourceFileWithUpdatedShape.path, sourceFileWithUpdatedShape); + seenFileNamesMap.set(sourceFileWithUpdatedShape.resolvedPath, sourceFileWithUpdatedShape); const queue = getReferencedByPaths(state, sourceFileWithUpdatedShape.resolvedPath); while (queue.length > 0) { const currentPath = queue.pop()!; diff --git a/src/testRunner/unittests/tsbuild/watchMode.ts b/src/testRunner/unittests/tsbuild/watchMode.ts index a96151a7e34..0452cce8ac4 100644 --- a/src/testRunner/unittests/tsbuild/watchMode.ts +++ b/src/testRunner/unittests/tsbuild/watchMode.ts @@ -810,7 +810,7 @@ export function gfoo() { [aDts, [aDts]], [bDts, [bDts, aDts]], [refs.path, [refs.path]], - [cTs.path, [cTs.path, refs.path, bDts]] + [cTs.path, [cTs.path, refs.path, bDts, aDts]] ]; function createSolutionAndWatchMode() { @@ -965,7 +965,7 @@ export function gfoo() { [aDts, [aDts]], [bDts, [bDts, aDts]], [nrefs.path, [nrefs.path]], - [cTs.path, [cTs.path, nrefs.path, bDts]] + [cTs.path, [cTs.path, nrefs.path, bDts, aDts]] ], // revert the update revert: host => host.writeFile(cTsconfig.path, cTsconfig.content), @@ -1001,7 +1001,7 @@ export function gfoo() { [nrefs.path, [nrefs.path]], [bDts, [bDts, nrefs.path]], [refs.path, [refs.path]], - [cTs.path, [cTs.path, refs.path, bDts]], + [cTs.path, [cTs.path, refs.path, bDts, nrefs.path]], ], // revert the update revert: host => host.writeFile(bTsconfig.path, bTsconfig.content), @@ -1055,7 +1055,7 @@ export function gfoo() { [aTs.path, [aTs.path]], [bDts, [bDts, aTs.path]], [refs.path, [refs.path]], - [cTs.path, [cTs.path, refs.path, bDts]], + [cTs.path, [cTs.path, refs.path, bDts, aTs.path]], ], // revert the update revert: host => host.writeFile(aTsconfig.path, aTsconfig.content), @@ -1093,7 +1093,7 @@ export function gfoo() { [aDts, [aDts]], [bDts, [bDts, aDts]], [refs.path, [refs.path]], - [cTsFile.path, [cTsFile.path, refs.path, bDts]] + [cTsFile.path, [cTsFile.path, refs.path, bDts, aDts]] ]; function getOutputFileStamps(host: TsBuildWatchSystem) { return expectedFiles.map(file => transformOutputToOutputFileStamp(file, host)); @@ -1246,4 +1246,44 @@ const a = { ] }); }); + + describe("unittests:: tsbuild:: watchMode:: with reexport when referenced project reexports definitions from another file", () => { + verifyTscWatch({ + scenario: "reexport", + subScenario: "Reports errors correctly", + commandLineArgs: ["-b", "-w", "-verbose", "src"], + sys: () => createWatchedSystem( + [ + ...[ + "src/tsconfig.json", + "src/main/tsconfig.json", "src/main/index.ts", + "src/pure/tsconfig.json", "src/pure/index.ts", "src/pure/session.ts" + ] + .map(f => getFileFromProject("reexport", f)), + { path: libFile.path, content: libContent } + ], + { currentDirectory: `${projectsLocation}/reexport` } + ), + changes: [ + sys => { + const content = sys.readFile(`${projectsLocation}/reexport/src/pure/session.ts`)!; + sys.writeFile(`${projectsLocation}/reexport/src/pure/session.ts`, content.replace("// ", "")); + sys.checkTimeoutQueueLengthAndRun(1); // build src/pure + sys.checkTimeoutQueueLengthAndRun(1); // build src/main + sys.checkTimeoutQueueLengthAndRun(1); // build src + sys.checkTimeoutQueueLength(0); + return "Introduce error"; + }, + sys => { + const content = sys.readFile(`${projectsLocation}/reexport/src/pure/session.ts`)!; + sys.writeFile(`${projectsLocation}/reexport/src/pure/session.ts`, content.replace("bar: ", "// bar: ")); + sys.checkTimeoutQueueLengthAndRun(1); // build src/pure + sys.checkTimeoutQueueLengthAndRun(1); // build src/main + sys.checkTimeoutQueueLengthAndRun(1); // build src + sys.checkTimeoutQueueLength(0); + return "Fix error"; + } + ] + }); + }); } diff --git a/src/testRunner/unittests/tscWatch/helpers.ts b/src/testRunner/unittests/tscWatch/helpers.ts index 5ba5db2622a..9057ba2b4e7 100644 --- a/src/testRunner/unittests/tscWatch/helpers.ts +++ b/src/testRunner/unittests/tscWatch/helpers.ts @@ -399,7 +399,7 @@ namespace ts.tscWatch { if (state.semanticDiagnosticsPerFile?.size) { baseline.push("Semantic diagnostics in builder refreshed for::"); for (const file of program.getSourceFiles()) { - if (!state.semanticDiagnosticsFromOldState || !state.semanticDiagnosticsFromOldState.has(file.path)) { + if (!state.semanticDiagnosticsFromOldState || !state.semanticDiagnosticsFromOldState.has(file.resolvedPath)) { baseline.push(file.fileName); } } diff --git a/tests/baselines/reference/tsbuild/demo/initial-build/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js b/tests/baselines/reference/tsbuild/demo/initial-build/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js index f5b45ed2587..922ca8d3b1c 100644 --- a/tests/baselines/reference/tsbuild/demo/initial-build/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js +++ b/tests/baselines/reference/tsbuild/demo/initial-build/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js @@ -89,7 +89,7 @@ exports.createDog = dog_1.createDog; "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", "signature": "4477582546-import Animal from './animal';\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n" }, - "../../core/utilities.ts": { + "../core/utilities.d.ts": { "version": "-8177343116-export declare function makeRandomName(): string;\r\nexport declare function lastElementOf(arr: T[]): T | undefined;\r\n", "signature": "-8177343116-export declare function makeRandomName(): string;\r\nexport declare function lastElementOf(arr: T[]): T | undefined;\r\n" }, @@ -136,7 +136,7 @@ exports.createDog = dog_1.createDog; "../../animals/animal.ts", "../../animals/dog.ts", "../../animals/index.ts", - "../../core/utilities.ts" + "../core/utilities.d.ts" ] }, "version": "FakeTSVersion" @@ -207,15 +207,15 @@ exports.lastElementOf = lastElementOf; "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../../animals/animal.ts": { + "../animals/animal.d.ts": { "version": "13427676350-export declare type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n", "signature": "13427676350-export declare type Size = \"small\" | \"medium\" | \"large\";\r\nexport default interface Animal {\r\n size: Size;\r\n}\r\n" }, - "../../animals/dog.ts": { + "../animals/dog.d.ts": { "version": "10854678623-import Animal from '.';\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\nexport declare function createDog(): Dog;\r\n", "signature": "10854678623-import Animal from '.';\r\nexport interface Dog extends Animal {\r\n woof(): void;\r\n name: string;\r\n}\r\nexport declare function createDog(): Dog;\r\n" }, - "../../animals/index.ts": { + "../animals/index.d.ts": { "version": "4477582546-import Animal from './animal';\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", "signature": "4477582546-import Animal from './animal';\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n" }, @@ -239,35 +239,35 @@ exports.lastElementOf = lastElementOf; "configFilePath": "../../zoo/tsconfig.json" }, "referencedMap": { - "../../animals/dog.ts": [ - "../animals/index.d.ts" - ], - "../../animals/index.ts": [ - "../animals/animal.d.ts", - "../animals/dog.d.ts" - ], "../../zoo/zoo.ts": [ "../animals/index.d.ts" + ], + "../animals/dog.d.ts": [ + "../animals/index.d.ts" + ], + "../animals/index.d.ts": [ + "../animals/animal.d.ts", + "../animals/dog.d.ts" ] }, "exportedModulesMap": { - "../../animals/dog.ts": [ - "../animals/index.d.ts" - ], - "../../animals/index.ts": [ - "../animals/animal.d.ts", - "../animals/dog.d.ts" - ], "../../zoo/zoo.ts": [ "../animals/index.d.ts" + ], + "../animals/dog.d.ts": [ + "../animals/index.d.ts" + ], + "../animals/index.d.ts": [ + "../animals/animal.d.ts", + "../animals/dog.d.ts" ] }, "semanticDiagnosticsPerFile": [ "../../../lib/lib.d.ts", - "../../animals/animal.ts", - "../../animals/dog.ts", - "../../animals/index.ts", - "../../zoo/zoo.ts" + "../../zoo/zoo.ts", + "../animals/animal.d.ts", + "../animals/dog.d.ts", + "../animals/index.d.ts" ] }, "version": "FakeTSVersion" diff --git a/tests/baselines/reference/tsbuild/javascriptProjectEmit/initial-build/loads-js-based-projects-and-emits-them-correctly.js b/tests/baselines/reference/tsbuild/javascriptProjectEmit/initial-build/loads-js-based-projects-and-emits-them-correctly.js index 7417b51952a..f02084e749f 100644 --- a/tests/baselines/reference/tsbuild/javascriptProjectEmit/initial-build/loads-js-based-projects-and-emits-them-correctly.js +++ b/tests/baselines/reference/tsbuild/javascriptProjectEmit/initial-build/loads-js-based-projects-and-emits-them-correctly.js @@ -72,7 +72,7 @@ exports.__esModule = true; "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", "signature": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n" }, - "../../src/common/nominal.js": { + "../common/nominal.d.ts": { "version": "-15964609857-export type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n", "signature": "-15964609857-export type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n" }, @@ -98,8 +98,8 @@ exports.__esModule = true; }, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../src/common/nominal.js", "../../src/sub-project/index.js", + "../common/nominal.d.ts", "../lib.d.ts" ] }, @@ -136,7 +136,7 @@ exports.getVar = getVar; "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", "signature": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n" }, - "../../src/sub-project/index.js": { + "../sub-project/index.d.ts": { "version": "-4500199036-export type MyNominal = string & {\r\n [Symbol.species]: \"MyNominal\";\r\n};\r\n", "signature": "-4500199036-export type MyNominal = string & {\r\n [Symbol.species]: \"MyNominal\";\r\n};\r\n" }, @@ -163,8 +163,8 @@ exports.getVar = getVar; "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../src/sub-project-2/index.js", - "../../src/sub-project/index.js", - "../lib.d.ts" + "../lib.d.ts", + "../sub-project/index.d.ts" ] }, "version": "FakeTSVersion" diff --git a/tests/baselines/reference/tsbuild/javascriptProjectEmit/initial-build/loads-js-based-projects-with-non-moved-json-files-and-emits-them-correctly.js b/tests/baselines/reference/tsbuild/javascriptProjectEmit/initial-build/loads-js-based-projects-with-non-moved-json-files-and-emits-them-correctly.js index 3c49c99688d..27a294e4968 100644 --- a/tests/baselines/reference/tsbuild/javascriptProjectEmit/initial-build/loads-js-based-projects-with-non-moved-json-files-and-emits-them-correctly.js +++ b/tests/baselines/reference/tsbuild/javascriptProjectEmit/initial-build/loads-js-based-projects-with-non-moved-json-files-and-emits-them-correctly.js @@ -26,11 +26,11 @@ exports.m = common_1["default"]; "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", "signature": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n" }, - "../../src/common/obj.json": { + "../../src/common/obj.d.ts": { "version": "-6323167306-export declare const val: number;\r\n", "signature": "-6323167306-export declare const val: number;\r\n" }, - "../../src/common/index.ts": { + "../../src/common/index.d.ts": { "version": "-4085459678-import x = require(\"./obj.json\");\r\nexport = x;\r\n", "signature": "-4085459678-import x = require(\"./obj.json\");\r\nexport = x;\r\n" }, @@ -52,7 +52,7 @@ exports.m = common_1["default"]; "configFilePath": "../../src/sub-project/tsconfig.json" }, "referencedMap": { - "../../src/common/index.ts": [ + "../../src/common/index.d.ts": [ "../../src/common/obj.d.ts" ], "../../src/sub-project/index.js": [ @@ -60,14 +60,14 @@ exports.m = common_1["default"]; ] }, "exportedModulesMap": { - "../../src/common/index.ts": [ + "../../src/common/index.d.ts": [ "../../src/common/obj.d.ts" ] }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../../src/common/index.ts", - "../../src/common/obj.json", + "../../src/common/index.d.ts", + "../../src/common/obj.d.ts", "../../src/sub-project/index.js" ] }, @@ -101,15 +101,15 @@ exports.getVar = getVar; "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", "signature": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n" }, - "../../src/common/obj.json": { + "../../src/common/obj.d.ts": { "version": "-6323167306-export declare const val: number;\r\n", "signature": "-6323167306-export declare const val: number;\r\n" }, - "../../src/common/index.ts": { + "../../src/common/index.d.ts": { "version": "-4085459678-import x = require(\"./obj.json\");\r\nexport = x;\r\n", "signature": "-4085459678-import x = require(\"./obj.json\");\r\nexport = x;\r\n" }, - "../../src/sub-project/index.js": { + "../sub-project/index.d.ts": { "version": "-229957289-export const m: typeof mod;\r\nimport mod from \"../common\";\r\n", "signature": "-229957289-export const m: typeof mod;\r\nimport mod from \"../common\";\r\n" }, @@ -131,33 +131,33 @@ exports.getVar = getVar; "configFilePath": "../../src/sub-project-2/tsconfig.json" }, "referencedMap": { - "../../src/common/index.ts": [ + "../../src/common/index.d.ts": [ "../../src/common/obj.d.ts" ], "../../src/sub-project-2/index.js": [ "../sub-project/index.d.ts" ], - "../../src/sub-project/index.js": [ + "../sub-project/index.d.ts": [ "../../src/common/index.d.ts" ] }, "exportedModulesMap": { - "../../src/common/index.ts": [ + "../../src/common/index.d.ts": [ "../../src/common/obj.d.ts" ], "../../src/sub-project-2/index.js": [ "../../src/common/obj.d.ts" ], - "../../src/sub-project/index.js": [ + "../sub-project/index.d.ts": [ "../../src/common/index.d.ts" ] }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../../src/common/index.ts", - "../../src/common/obj.json", + "../../src/common/index.d.ts", + "../../src/common/obj.d.ts", "../../src/sub-project-2/index.js", - "../../src/sub-project/index.js" + "../sub-project/index.d.ts" ] }, "version": "FakeTSVersion" diff --git a/tests/baselines/reference/tsbuild/moduleSpecifiers/initial-build/synthesized-module-specifiers-resolve-correctly.js b/tests/baselines/reference/tsbuild/moduleSpecifiers/initial-build/synthesized-module-specifiers-resolve-correctly.js index 5c8f8da7b6f..e84238976a2 100644 --- a/tests/baselines/reference/tsbuild/moduleSpecifiers/initial-build/synthesized-module-specifiers-resolve-correctly.js +++ b/tests/baselines/reference/tsbuild/moduleSpecifiers/initial-build/synthesized-module-specifiers-resolve-correctly.js @@ -81,7 +81,7 @@ exports.__esModule = true; "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", "signature": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n" }, - "../../../solution/common/nominal.ts": { + "../common/nominal.d.ts": { "version": "-9513375615-export declare type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n", "signature": "-9513375615-export declare type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n" }, @@ -109,8 +109,8 @@ exports.__esModule = true; }, "semanticDiagnosticsPerFile": [ "../../../../lib/lib.d.ts", - "../../../solution/common/nominal.ts", - "../../../solution/sub-project/index.ts" + "../../../solution/sub-project/index.ts", + "../common/nominal.d.ts" ] }, "version": "FakeTSVersion" @@ -144,11 +144,11 @@ exports.getVar = getVar; "version": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", "signature": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n" }, - "../../../solution/common/nominal.ts": { + "../common/nominal.d.ts": { "version": "-9513375615-export declare type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n", "signature": "-9513375615-export declare type Nominal = T & {\r\n [Symbol.species]: Name;\r\n};\r\n" }, - "../../../solution/sub-project/index.ts": { + "../sub-project/index.d.ts": { "version": "-21416888433-import { Nominal } from '../common/nominal';\r\nexport declare type MyNominal = Nominal;\r\n", "signature": "-21416888433-import { Nominal } from '../common/nominal';\r\nexport declare type MyNominal = Nominal;\r\n" }, @@ -168,7 +168,7 @@ exports.getVar = getVar; "../../../solution/sub-project-2/index.ts": [ "../sub-project/index.d.ts" ], - "../../../solution/sub-project/index.ts": [ + "../sub-project/index.d.ts": [ "../common/nominal.d.ts" ] }, @@ -176,15 +176,15 @@ exports.getVar = getVar; "../../../solution/sub-project-2/index.ts": [ "../common/nominal.d.ts" ], - "../../../solution/sub-project/index.ts": [ + "../sub-project/index.d.ts": [ "../common/nominal.d.ts" ] }, "semanticDiagnosticsPerFile": [ "../../../../lib/lib.d.ts", - "../../../solution/common/nominal.ts", "../../../solution/sub-project-2/index.ts", - "../../../solution/sub-project/index.ts" + "../common/nominal.d.ts", + "../sub-project/index.d.ts" ] }, "version": "FakeTSVersion" diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/initial-build/importing-json-module-from-project-reference.js b/tests/baselines/reference/tsbuild/resolveJsonModule/initial-build/importing-json-module-from-project-reference.js index 12542f55749..01270475b47 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/initial-build/importing-json-module-from-project-reference.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/initial-build/importing-json-module-from-project-reference.js @@ -35,7 +35,7 @@ console.log(foo_json_1.foo); "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../strings/foo.json": { + "../strings/foo.d.ts": { "version": "-1457151099-export declare const foo: string;\r\n", "signature": "-1457151099-export declare const foo: string;\r\n" }, @@ -62,7 +62,7 @@ console.log(foo_json_1.foo); "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../strings/foo.json", + "../strings/foo.d.ts", "./index.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/listEmittedFiles.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/listEmittedFiles.js index c4263d5659a..fd2762df622 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/listEmittedFiles.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/listEmittedFiles.js @@ -100,11 +100,11 @@ export class someClass { } "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, @@ -135,8 +135,8 @@ export class someClass { } }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -153,15 +153,15 @@ export class someClass { } "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" }, @@ -179,7 +179,7 @@ export class someClass { } "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -189,7 +189,7 @@ export class someClass { } ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -198,9 +198,9 @@ export class someClass { } }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/listFiles.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/listFiles.js index 18f3c9b63d6..736ccb453e0 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/listFiles.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/listFiles.js @@ -102,11 +102,11 @@ export class someClass { } "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, @@ -137,8 +137,8 @@ export class someClass { } }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -155,15 +155,15 @@ export class someClass { } "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" }, @@ -181,7 +181,7 @@ export class someClass { } "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -191,7 +191,7 @@ export class someClass { } ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -200,9 +200,9 @@ export class someClass { } }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/rebuilds-when-extended-config-file-changes.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/rebuilds-when-extended-config-file-changes.js index ff22ad2e032..4ff19c81e41 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/rebuilds-when-extended-config-file-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/rebuilds-when-extended-config-file-changes.js @@ -29,15 +29,15 @@ exitCode:: ExitStatus.Success "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" }, @@ -54,7 +54,7 @@ exitCode:: ExitStatus.Success "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -64,7 +64,7 @@ exitCode:: ExitStatus.Success ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -73,9 +73,9 @@ exitCode:: ExitStatus.Success }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/rebuilds-when-tsconfig-changes.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/rebuilds-when-tsconfig-changes.js index 577edf20fe5..032162dc739 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/rebuilds-when-tsconfig-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/rebuilds-when-tsconfig-changes.js @@ -41,15 +41,15 @@ exitCode:: ExitStatus.Success "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" }, @@ -67,7 +67,7 @@ exitCode:: ExitStatus.Success "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -77,7 +77,7 @@ exitCode:: ExitStatus.Success ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -86,9 +86,9 @@ exitCode:: ExitStatus.Success }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/sample.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/sample.js index 0796602e3f9..89742186d96 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/sample.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/sample.js @@ -259,11 +259,11 @@ export class someClass { } "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, @@ -293,8 +293,8 @@ export class someClass { } }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -311,15 +311,15 @@ export class someClass { } "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-2069755619-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\nexport declare class someClass {\r\n}\r\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" }, @@ -336,7 +336,7 @@ export class someClass { } "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -346,7 +346,7 @@ export class someClass { } ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -355,9 +355,9 @@ export class someClass { } }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js index 70113328193..cc1685c53b9 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js @@ -59,15 +59,15 @@ exports.m = mod; "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" }, @@ -85,7 +85,7 @@ exports.m = mod; "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -95,7 +95,7 @@ exports.m = mod; ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -104,9 +104,9 @@ exports.m = mod; }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-logic-config-changes-declaration-dir.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-logic-config-changes-declaration-dir.js index 275c807f66f..d8eb5f771d0 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-logic-config-changes-declaration-dir.js +++ b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-logic-config-changes-declaration-dir.js @@ -64,11 +64,11 @@ export declare const m: typeof mod; "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, @@ -99,8 +99,8 @@ export declare const m: typeof mod; }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -117,15 +117,15 @@ export declare const m: typeof mod; "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, - "../logic/index.ts": { + "../logic/decls/index.d.ts": { "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" }, @@ -142,7 +142,7 @@ export declare const m: typeof mod; "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/decls/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -152,7 +152,7 @@ export declare const m: typeof mod; ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/decls/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -161,9 +161,9 @@ export declare const m: typeof mod; }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/decls/index.d.ts", "./index.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/always-builds-under-with-force-option.js b/tests/baselines/reference/tsbuild/sample1/initial-build/always-builds-under-with-force-option.js index 7184dc584e6..6018dc6d617 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-build/always-builds-under-with-force-option.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/always-builds-under-with-force-option.js @@ -104,11 +104,11 @@ exports.m = mod; "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, @@ -138,8 +138,8 @@ exports.m = mod; }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -170,15 +170,15 @@ exports.m = mod; "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" }, @@ -195,7 +195,7 @@ exports.m = mod; "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -205,7 +205,7 @@ exports.m = mod; ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -214,9 +214,9 @@ exports.m = mod; }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/builds-correctly-when-declarationDir-is-specified.js b/tests/baselines/reference/tsbuild/sample1/initial-build/builds-correctly-when-declarationDir-is-specified.js index 6f9e05fdb69..33e47cac76a 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-build/builds-correctly-when-declarationDir-is-specified.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/builds-correctly-when-declarationDir-is-specified.js @@ -107,11 +107,11 @@ export declare const m: typeof mod; "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, @@ -140,8 +140,8 @@ export declare const m: typeof mod; }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -172,15 +172,15 @@ exports.m = mod; "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, - "../logic/index.ts": { + "../logic/out/decls/index.d.ts": { "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" }, @@ -197,7 +197,7 @@ exports.m = mod; "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/out/decls/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -207,7 +207,7 @@ exports.m = mod; ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/out/decls/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -216,9 +216,9 @@ exports.m = mod; }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/out/decls/index.d.ts", "./index.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/builds-correctly-when-outDir-is-specified.js b/tests/baselines/reference/tsbuild/sample1/initial-build/builds-correctly-when-outDir-is-specified.js index b61004ba7b1..fdb54f607d7 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-build/builds-correctly-when-outDir-is-specified.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/builds-correctly-when-outDir-is-specified.js @@ -104,11 +104,11 @@ exports.m = mod; "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../../core/index.ts": { + "../../core/index.d.ts": { "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" }, - "../../core/anothermodule.ts": { + "../../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, @@ -137,8 +137,8 @@ exports.m = mod; }, "semanticDiagnosticsPerFile": [ "../../../lib/lib.d.ts", - "../../core/anothermodule.ts", - "../../core/index.ts", + "../../core/anothermodule.d.ts", + "../../core/index.d.ts", "../index.ts" ] }, @@ -172,15 +172,15 @@ exports.m = mod; "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, - "../logic/index.ts": { + "../logic/outdir/index.d.ts": { "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" }, @@ -197,7 +197,7 @@ exports.m = mod; "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/outdir/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -207,7 +207,7 @@ exports.m = mod; ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/outdir/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -216,9 +216,9 @@ exports.m = mod; }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/outdir/index.d.ts", "./index.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/listEmittedFiles.js b/tests/baselines/reference/tsbuild/sample1/initial-build/listEmittedFiles.js index e9fb72c132e..5ffe709a276 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-build/listEmittedFiles.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/listEmittedFiles.js @@ -119,11 +119,11 @@ exports.m = mod; "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, @@ -154,8 +154,8 @@ exports.m = mod; }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -186,15 +186,15 @@ exports.m = mod; "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" }, @@ -212,7 +212,7 @@ exports.m = mod; "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -222,7 +222,7 @@ exports.m = mod; ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -231,9 +231,9 @@ exports.m = mod; }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/listFiles.js b/tests/baselines/reference/tsbuild/sample1/initial-build/listFiles.js index 9e44bb99bd4..e6a74f350b4 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-build/listFiles.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/listFiles.js @@ -118,11 +118,11 @@ exports.m = mod; "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, @@ -153,8 +153,8 @@ exports.m = mod; }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -185,15 +185,15 @@ exports.m = mod; "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" }, @@ -211,7 +211,7 @@ exports.m = mod; "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -221,7 +221,7 @@ exports.m = mod; ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -230,9 +230,9 @@ exports.m = mod; }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/rebuilds-when-extended-config-file-changes.js b/tests/baselines/reference/tsbuild/sample1/initial-build/rebuilds-when-extended-config-file-changes.js index d36e53f292e..6b6942ae5d9 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-build/rebuilds-when-extended-config-file-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/rebuilds-when-extended-config-file-changes.js @@ -121,11 +121,11 @@ exports.m = mod; "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, @@ -155,8 +155,8 @@ exports.m = mod; }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -205,15 +205,15 @@ exports.m = mod; "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" }, @@ -231,7 +231,7 @@ exports.m = mod; "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -241,7 +241,7 @@ exports.m = mod; ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -250,9 +250,9 @@ exports.m = mod; }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/sample.js b/tests/baselines/reference/tsbuild/sample1/initial-build/sample.js index 6dec9d74cd3..53187201d0f 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-build/sample.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/sample.js @@ -410,11 +410,11 @@ sourceFile:index.ts "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, @@ -444,8 +444,8 @@ sourceFile:index.ts }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -476,15 +476,15 @@ exports.m = mod; "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" }, @@ -501,7 +501,7 @@ exports.m = mod; "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -511,7 +511,7 @@ exports.m = mod; ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -520,9 +520,9 @@ exports.m = mod; }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/when-esModuleInterop-option-changes.js b/tests/baselines/reference/tsbuild/sample1/initial-build/when-esModuleInterop-option-changes.js index 5a11e363bfd..08d72e08102 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-build/when-esModuleInterop-option-changes.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/when-esModuleInterop-option-changes.js @@ -121,11 +121,11 @@ exports.m = mod; "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, @@ -155,8 +155,8 @@ exports.m = mod; }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -203,15 +203,15 @@ exports.m = mod; "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" }, @@ -229,7 +229,7 @@ exports.m = mod; "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -239,7 +239,7 @@ exports.m = mod; ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -248,9 +248,9 @@ exports.m = mod; }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/when-logic-specifies-tsBuildInfoFile.js b/tests/baselines/reference/tsbuild/sample1/initial-build/when-logic-specifies-tsBuildInfoFile.js index a448bcf3054..01296cd842a 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-build/when-logic-specifies-tsBuildInfoFile.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/when-logic-specifies-tsBuildInfoFile.js @@ -410,11 +410,11 @@ sourceFile:index.ts "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, @@ -445,8 +445,8 @@ sourceFile:index.ts }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -493,15 +493,15 @@ exports.m = mod; "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" }, @@ -518,7 +518,7 @@ exports.m = mod; "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -528,7 +528,7 @@ exports.m = mod; ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -537,9 +537,9 @@ exports.m = mod; }, "semanticDiagnosticsPerFile": [ "../../lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/transitiveReferences/initial-build/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js b/tests/baselines/reference/tsbuild/transitiveReferences/initial-build/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js index aaa2ca6695e..c3b321fe90d 100644 --- a/tests/baselines/reference/tsbuild/transitiveReferences/initial-build/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js +++ b/tests/baselines/reference/tsbuild/transitiveReferences/initial-build/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js @@ -93,7 +93,7 @@ a_1.X; "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "./a.ts": { + "./a.d.ts": { "version": "-9529994156-export declare class A {\r\n}\r\n", "signature": "-9529994156-export declare class A {\r\n}\r\n" }, @@ -120,7 +120,7 @@ a_1.X; }, "semanticDiagnosticsPerFile": [ "../lib/lib.d.ts", - "./a.ts", + "./a.d.ts", "./b.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/transitiveReferences/initial-build/builds-correctly.js b/tests/baselines/reference/tsbuild/transitiveReferences/initial-build/builds-correctly.js index 14ed47ea4c8..afdb41f44e0 100644 --- a/tests/baselines/reference/tsbuild/transitiveReferences/initial-build/builds-correctly.js +++ b/tests/baselines/reference/tsbuild/transitiveReferences/initial-build/builds-correctly.js @@ -86,7 +86,7 @@ a_1.X; "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "./a.ts": { + "./a.d.ts": { "version": "-9529994156-export declare class A {\r\n}\r\n", "signature": "-9529994156-export declare class A {\r\n}\r\n" }, @@ -118,7 +118,7 @@ a_1.X; }, "semanticDiagnosticsPerFile": [ "../lib/lib.d.ts", - "./a.ts", + "./a.d.ts", "./b.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/watchMode/demo/updates-with-circular-reference.js b/tests/baselines/reference/tsbuild/watchMode/demo/updates-with-circular-reference.js index 8074bbe6522..9848df887ee 100644 --- a/tests/baselines/reference/tsbuild/watchMode/demo/updates-with-circular-reference.js +++ b/tests/baselines/reference/tsbuild/watchMode/demo/updates-with-circular-reference.js @@ -337,7 +337,7 @@ export declare function createDog(): Dog; "version": "-5382672599-import Animal from './animal';\r\n\r\nexport default Animal;\r\nimport { createDog, Dog } from './dog';\r\nexport { createDog, Dog };\r\n", "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" }, - "../../core/utilities.ts": { + "../core/utilities.d.ts": { "version": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n", "signature": "-11345568166-export declare function makeRandomName(): string;\nexport declare function lastElementOf(arr: T[]): T | undefined;\n" }, @@ -385,7 +385,7 @@ export declare function createDog(): Dog; "../../animals/animal.ts", "../../animals/dog.ts", "../../animals/index.ts", - "../../core/utilities.ts" + "../core/utilities.d.ts" ] }, "version": "FakeTSVersion" @@ -416,15 +416,15 @@ export declare function createZoo(): Array; "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" }, - "../../animals/animal.ts": { + "../animals/animal.d.ts": { "version": "-10510161654-export declare type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n", "signature": "-10510161654-export declare type Size = \"small\" | \"medium\" | \"large\";\nexport default interface Animal {\n size: Size;\n}\n" }, - "../../animals/dog.ts": { + "../animals/dog.d.ts": { "version": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n", "signature": "6032048049-import Animal from '.';\nexport interface Dog extends Animal {\n woof(): void;\n name: string;\n}\nexport declare function createDog(): Dog;\n" }, - "../../animals/index.ts": { + "../animals/index.d.ts": { "version": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n", "signature": "1096904574-import Animal from './animal';\nexport default Animal;\nimport { createDog, Dog } from './dog';\nexport { createDog, Dog };\n" }, @@ -449,35 +449,35 @@ export declare function createZoo(): Array; "configFilePath": "../../zoo/tsconfig.json" }, "referencedMap": { - "../../animals/dog.ts": [ - "../animals/index.d.ts" - ], - "../../animals/index.ts": [ - "../animals/animal.d.ts", - "../animals/dog.d.ts" - ], "../../zoo/zoo.ts": [ "../animals/index.d.ts" + ], + "../animals/dog.d.ts": [ + "../animals/index.d.ts" + ], + "../animals/index.d.ts": [ + "../animals/animal.d.ts", + "../animals/dog.d.ts" ] }, "exportedModulesMap": { - "../../animals/dog.ts": [ - "../animals/index.d.ts" - ], - "../../animals/index.ts": [ - "../animals/animal.d.ts", - "../animals/dog.d.ts" - ], "../../zoo/zoo.ts": [ "../animals/index.d.ts" + ], + "../animals/dog.d.ts": [ + "../animals/index.d.ts" + ], + "../animals/index.d.ts": [ + "../animals/animal.d.ts", + "../animals/dog.d.ts" ] }, "semanticDiagnosticsPerFile": [ "../../../../../../a/lib/lib.d.ts", - "../../animals/animal.ts", - "../../animals/dog.ts", - "../../animals/index.ts", - "../../zoo/zoo.ts" + "../../zoo/zoo.ts", + "../animals/animal.d.ts", + "../animals/dog.d.ts", + "../animals/index.d.ts" ] }, "version": "FakeTSVersion" diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/creates-solution-in-watch-mode.js b/tests/baselines/reference/tsbuild/watchMode/programUpdates/creates-solution-in-watch-mode.js index 3c979b38e64..b7098c6896a 100644 --- a/tests/baselines/reference/tsbuild/watchMode/programUpdates/creates-solution-in-watch-mode.js +++ b/tests/baselines/reference/tsbuild/watchMode/programUpdates/creates-solution-in-watch-mode.js @@ -198,11 +198,11 @@ export declare const m: typeof mod; "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", "signature": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map" }, @@ -233,8 +233,8 @@ export declare const m: typeof mod; }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -265,15 +265,15 @@ export declare const m: typeof mod; "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", "signature": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, @@ -291,7 +291,7 @@ export declare const m: typeof mod; "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -301,7 +301,7 @@ export declare const m: typeof mod; ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -310,9 +310,9 @@ export declare const m: typeof mod; }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/incremental-updates-in-verbose-mode.js b/tests/baselines/reference/tsbuild/watchMode/programUpdates/incremental-updates-in-verbose-mode.js index dcbcd27bca5..261066b7267 100644 --- a/tests/baselines/reference/tsbuild/watchMode/programUpdates/incremental-updates-in-verbose-mode.js +++ b/tests/baselines/reference/tsbuild/watchMode/programUpdates/incremental-updates-in-verbose-mode.js @@ -198,11 +198,11 @@ export declare const m: typeof mod; "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", "signature": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map" }, @@ -233,8 +233,8 @@ export declare const m: typeof mod; }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -265,15 +265,15 @@ export declare const m: typeof mod; "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", "signature": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, @@ -291,7 +291,7 @@ export declare const m: typeof mod; "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -301,7 +301,7 @@ export declare const m: typeof mod; ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -310,9 +310,9 @@ export declare const m: typeof mod; }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, @@ -458,11 +458,11 @@ function someFn() { } "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", "signature": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map" }, @@ -493,8 +493,8 @@ function someFn() { } }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -607,11 +607,11 @@ export declare function someFn(): void; "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", "signature": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map" }, @@ -642,8 +642,8 @@ export declare function someFn(): void; }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -660,15 +660,15 @@ export declare function someFn(): void; "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", "signature": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-8742548750-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n", "signature": "-8742548750-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\nexport declare function someFn(): void;\n" }, @@ -686,7 +686,7 @@ export declare function someFn(): void; "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -696,7 +696,7 @@ export declare function someFn(): void; ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -705,9 +705,9 @@ export declare function someFn(): void; }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js b/tests/baselines/reference/tsbuild/watchMode/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js index 3141ffbef97..893ee48684e 100644 --- a/tests/baselines/reference/tsbuild/watchMode/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js +++ b/tests/baselines/reference/tsbuild/watchMode/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js @@ -198,11 +198,11 @@ export declare const m: typeof mod; "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", "signature": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map" }, @@ -233,8 +233,8 @@ export declare const m: typeof mod; }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -265,15 +265,15 @@ export declare const m: typeof mod; "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", "signature": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, @@ -291,7 +291,7 @@ export declare const m: typeof mod; "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -301,7 +301,7 @@ export declare const m: typeof mod; ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -310,9 +310,9 @@ export declare const m: typeof mod; }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js b/tests/baselines/reference/tsbuild/watchMode/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js index cb0d103cd8b..d151c47e240 100644 --- a/tests/baselines/reference/tsbuild/watchMode/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js +++ b/tests/baselines/reference/tsbuild/watchMode/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js @@ -199,11 +199,11 @@ export declare const m: typeof mod; "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", "signature": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map" }, @@ -235,8 +235,8 @@ export declare const m: typeof mod; }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -267,15 +267,15 @@ export declare const m: typeof mod; "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", "signature": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, @@ -294,7 +294,7 @@ export declare const m: typeof mod; "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -304,7 +304,7 @@ export declare const m: typeof mod; ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -313,9 +313,9 @@ export declare const m: typeof mod; }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/watches-config-files-that-are-not-present.js b/tests/baselines/reference/tsbuild/watchMode/programUpdates/watches-config-files-that-are-not-present.js index def7e890e06..e5f01747893 100644 --- a/tests/baselines/reference/tsbuild/watchMode/programUpdates/watches-config-files-that-are-not-present.js +++ b/tests/baselines/reference/tsbuild/watchMode/programUpdates/watches-config-files-that-are-not-present.js @@ -227,11 +227,11 @@ export declare const m: typeof mod; "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", "signature": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map" }, @@ -262,8 +262,8 @@ export declare const m: typeof mod; }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -343,15 +343,15 @@ export declare const m: typeof mod; "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", "signature": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, @@ -369,7 +369,7 @@ export declare const m: typeof mod; "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -379,7 +379,7 @@ export declare const m: typeof mod; ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -388,9 +388,9 @@ export declare const m: typeof mod; }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js b/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js index 215cde7aaa2..8616c482c2a 100644 --- a/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js +++ b/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js @@ -164,11 +164,11 @@ export declare const m: typeof mod; "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-9234818176-export declare const World = \"hello\";\n", "signature": "-9234818176-export declare const World = \"hello\";\n" }, @@ -199,8 +199,8 @@ export declare const m: typeof mod; }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -231,15 +231,15 @@ export declare const m: typeof mod; "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-9234818176-export declare const World = \"hello\";\n", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, @@ -257,7 +257,7 @@ export declare const m: typeof mod; "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -267,7 +267,7 @@ export declare const m: typeof mod; ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -276,9 +276,9 @@ export declare const m: typeof mod; }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js b/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js index 7ecc1cd59ee..8c998e5be7a 100644 --- a/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js +++ b/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js @@ -164,11 +164,11 @@ export declare const m: typeof mod; "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-9234818176-export declare const World = \"hello\";\n", "signature": "-9234818176-export declare const World = \"hello\";\n" }, @@ -199,8 +199,8 @@ export declare const m: typeof mod; }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -231,15 +231,15 @@ export declare const m: typeof mod; "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-9234818176-export declare const World = \"hello\";\n", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, @@ -257,7 +257,7 @@ export declare const m: typeof mod; "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -267,7 +267,7 @@ export declare const m: typeof mod; ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -276,9 +276,9 @@ export declare const m: typeof mod; }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, @@ -488,11 +488,11 @@ Change:: Build logic or update time stamps "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-9234818176-export declare const World = \"hello\";\n", "signature": "-9234818176-export declare const World = \"hello\";\n" }, @@ -523,8 +523,8 @@ Change:: Build logic or update time stamps }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -584,15 +584,15 @@ Change:: Build Tests "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n", "signature": "-2489663677-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-9234818176-export declare const World = \"hello\";\n", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, @@ -610,7 +610,7 @@ Change:: Build Tests "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -620,7 +620,7 @@ Change:: Build Tests ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -629,9 +629,9 @@ Change:: Build Tests }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, @@ -799,11 +799,11 @@ Change:: Build logic or update time stamps "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-9234818176-export declare const World = \"hello\";\n", "signature": "-9234818176-export declare const World = \"hello\";\n" }, @@ -834,8 +834,8 @@ Change:: Build logic or update time stamps }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -895,15 +895,15 @@ Change:: Build Tests "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-9234818176-export declare const World = \"hello\";\n", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, @@ -921,7 +921,7 @@ Change:: Build Tests "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -931,7 +931,7 @@ Change:: Build Tests ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -940,9 +940,9 @@ Change:: Build Tests }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, @@ -1128,11 +1128,11 @@ Change:: Build logic or update time stamps "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n", "signature": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-9234818176-export declare const World = \"hello\";\n", "signature": "-9234818176-export declare const World = \"hello\";\n" }, @@ -1163,8 +1163,8 @@ Change:: Build logic or update time stamps }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -1224,15 +1224,15 @@ Change:: Build Tests "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n", "signature": "-1938481101-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-9234818176-export declare const World = \"hello\";\n", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, @@ -1250,7 +1250,7 @@ Change:: Build Tests "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -1260,7 +1260,7 @@ Change:: Build Tests ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -1269,9 +1269,9 @@ Change:: Build Tests }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js b/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js index 3c9719ebab3..ac811ecc220 100644 --- a/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js +++ b/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js @@ -164,11 +164,11 @@ export declare const m: typeof mod; "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-9234818176-export declare const World = \"hello\";\n", "signature": "-9234818176-export declare const World = \"hello\";\n" }, @@ -199,8 +199,8 @@ export declare const m: typeof mod; }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -231,15 +231,15 @@ export declare const m: typeof mod; "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n", "signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-9234818176-export declare const World = \"hello\";\n", "signature": "-9234818176-export declare const World = \"hello\";\n" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, @@ -257,7 +257,7 @@ export declare const m: typeof mod; "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -267,7 +267,7 @@ export declare const m: typeof mod; ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -276,9 +276,9 @@ export declare const m: typeof mod; }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js b/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js index 1ea2c537136..2bf809cb005 100644 --- a/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js +++ b/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js @@ -198,11 +198,11 @@ export declare const m: typeof mod; "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", "signature": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map" }, @@ -233,8 +233,8 @@ export declare const m: typeof mod; }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -265,15 +265,15 @@ export declare const m: typeof mod; "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", "signature": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, @@ -291,7 +291,7 @@ export declare const m: typeof mod; "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -301,7 +301,7 @@ export declare const m: typeof mod; ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -310,9 +310,9 @@ export declare const m: typeof mod; }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js b/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js index 1c0d211ab96..de3bdf3bd50 100644 --- a/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js +++ b/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js @@ -198,11 +198,11 @@ export declare const m: typeof mod; "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", "signature": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map" }, @@ -233,8 +233,8 @@ export declare const m: typeof mod; }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -265,15 +265,15 @@ export declare const m: typeof mod; "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", "signature": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, @@ -291,7 +291,7 @@ export declare const m: typeof mod; "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -301,7 +301,7 @@ export declare const m: typeof mod; ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -310,9 +310,9 @@ export declare const m: typeof mod; }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, @@ -528,11 +528,11 @@ Change:: Build logic or update time stamps "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-1428376100-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", "signature": "-1428376100-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map" }, @@ -563,8 +563,8 @@ Change:: Build logic or update time stamps }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -624,15 +624,15 @@ Change:: Build Tests "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-1428376100-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map", "signature": "-1428376100-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, @@ -650,7 +650,7 @@ Change:: Build Tests "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -660,7 +660,7 @@ Change:: Build Tests ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -669,9 +669,9 @@ Change:: Build Tests }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, @@ -845,11 +845,11 @@ Change:: Build logic or update time stamps "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", "signature": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map" }, @@ -880,8 +880,8 @@ Change:: Build logic or update time stamps }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -941,15 +941,15 @@ Change:: Build Tests "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", "signature": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, @@ -967,7 +967,7 @@ Change:: Build Tests "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -977,7 +977,7 @@ Change:: Build Tests ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -986,9 +986,9 @@ Change:: Build Tests }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, @@ -1180,11 +1180,11 @@ Change:: Build logic or update time stamps "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-8987447092-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n//# sourceMappingURL=index.d.ts.map", "signature": "-8987447092-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map" }, @@ -1215,8 +1215,8 @@ Change:: Build logic or update time stamps }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -1276,15 +1276,15 @@ Change:: Build Tests "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-8987447092-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n//# sourceMappingURL=index.d.ts.map", "signature": "-8987447092-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\nexport declare class someClass {\n}\nexport declare class someClass2 {\n}\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, @@ -1302,7 +1302,7 @@ Change:: Build Tests "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -1312,7 +1312,7 @@ Change:: Build Tests ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -1321,9 +1321,9 @@ Change:: Build Tests }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js b/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js index 68721441d07..249c469c90c 100644 --- a/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js +++ b/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js @@ -198,11 +198,11 @@ export declare const m: typeof mod; "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", "signature": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map" }, @@ -233,8 +233,8 @@ export declare const m: typeof mod; }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", "./index.ts" ] }, @@ -265,15 +265,15 @@ export declare const m: typeof mod; "version": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }", "signature": "-7698705165-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }" }, - "../core/index.ts": { + "../core/index.d.ts": { "version": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map", "signature": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map" }, - "../core/anothermodule.ts": { + "../core/anothermodule.d.ts": { "version": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map", "signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map" }, - "../logic/index.ts": { + "../logic/index.d.ts": { "version": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n", "signature": "-9659407152-export declare function getSecondsInDay(): number;\nimport * as mod from '../core/anotherModule';\nexport declare const m: typeof mod;\n" }, @@ -291,7 +291,7 @@ export declare const m: typeof mod; "configFilePath": "./tsconfig.json" }, "referencedMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -301,7 +301,7 @@ export declare const m: typeof mod; ] }, "exportedModulesMap": { - "../logic/index.ts": [ + "../logic/index.d.ts": [ "../core/anothermodule.d.ts" ], "./index.ts": [ @@ -310,9 +310,9 @@ export declare const m: typeof mod; }, "semanticDiagnosticsPerFile": [ "../../../../../a/lib/lib.d.ts", - "../core/anothermodule.ts", - "../core/index.ts", - "../logic/index.ts", + "../core/anothermodule.d.ts", + "../core/index.d.ts", + "../logic/index.d.ts", "./index.ts" ] }, diff --git a/tests/baselines/reference/tsbuild/watchMode/reexport/Reports-errors-correctly.js b/tests/baselines/reference/tsbuild/watchMode/reexport/Reports-errors-correctly.js new file mode 100644 index 00000000000..739e1f745a6 --- /dev/null +++ b/tests/baselines/reference/tsbuild/watchMode/reexport/Reports-errors-correctly.js @@ -0,0 +1,482 @@ +/a/lib/tsc.js -b -w -verbose src +//// [/user/username/projects/reexport/src/tsconfig.json] +{ + "files": [], + "include": [], + "references": [{ "path": "./pure" }, { "path": "./main" }] +} + + +//// [/user/username/projects/reexport/src/main/tsconfig.json] +{ + "compilerOptions": { + "outDir": "../../out", + "rootDir": "../" + }, + "include": ["**/*.ts"], + "references": [{ "path": "../pure" }] +} + + +//// [/user/username/projects/reexport/src/main/index.ts] +import { Session } from "../pure"; + +export const session: Session = { + foo: 1 +}; + + +//// [/user/username/projects/reexport/src/pure/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "outDir": "../../out", + "rootDir": "../" + }, + "include": ["**/*.ts"] +} + + +//// [/user/username/projects/reexport/src/pure/index.ts] +export * from "./session"; + + +//// [/user/username/projects/reexport/src/pure/session.ts] +export interface Session { + foo: number; + // bar: number; +} + + +//// [/a/lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/user/username/projects/reexport/out/pure/session.js] +"use strict"; +exports.__esModule = true; + + +//// [/user/username/projects/reexport/out/pure/session.d.ts] +export interface Session { + foo: number; +} + + +//// [/user/username/projects/reexport/out/pure/index.js] +"use strict"; +exports.__esModule = true; + + +//// [/user/username/projects/reexport/out/pure/index.d.ts] +export * from "./session"; + + +//// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../../../../../a/lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "../../src/pure/session.ts": { + "version": "5375279855-export interface Session {\n foo: number;\n // bar: number;\n}\n", + "signature": "-1218067212-export interface Session {\n foo: number;\n}\n" + }, + "../../src/pure/index.ts": { + "version": "-5356193041-export * from \"./session\";\n", + "signature": "-5356193041-export * from \"./session\";\n" + } + }, + "options": { + "composite": true, + "outDir": "..", + "rootDir": "../../src", + "watch": true, + "configFilePath": "../../src/pure/tsconfig.json" + }, + "referencedMap": { + "../../src/pure/index.ts": [ + "../../src/pure/session.ts" + ] + }, + "exportedModulesMap": { + "../../src/pure/index.ts": [ + "../../src/pure/session.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../../../../../a/lib/lib.d.ts", + "../../src/pure/index.ts", + "../../src/pure/session.ts" + ] + }, + "version": "FakeTSVersion" +} + +//// [/user/username/projects/reexport/out/main/index.js] +"use strict"; +exports.__esModule = true; +exports.session = { + foo: 1 +}; + + + +Output:: +>> Screen clear +12:00:35 AM - Starting compilation in watch mode... + + +12:00:36 AM - Projects in this build: + * src/pure/tsconfig.json + * src/main/tsconfig.json + * src/tsconfig.json + + +12:00:37 AM - Project 'src/pure/tsconfig.json' is out of date because output file 'out/pure/index.js' does not exist + + +12:00:38 AM - Building project '/user/username/projects/reexport/src/pure/tsconfig.json'... + + +12:00:54 AM - Project 'src/main/tsconfig.json' is out of date because output file 'out/main/index.js' does not exist + + +12:00:55 AM - Building project '/user/username/projects/reexport/src/main/tsconfig.json'... + + + +12:01:01 AM - Found 0 errors. Watching for file changes. + + +Program root files: ["/user/username/projects/reexport/src/pure/index.ts","/user/username/projects/reexport/src/pure/session.ts"] +Program options: {"composite":true,"outDir":"/user/username/projects/reexport/out","rootDir":"/user/username/projects/reexport/src","watch":true,"configFilePath":"/user/username/projects/reexport/src/pure/tsconfig.json"} +Program files:: +/a/lib/lib.d.ts +/user/username/projects/reexport/src/pure/session.ts +/user/username/projects/reexport/src/pure/index.ts + +Semantic diagnostics in builder refreshed for:: +/a/lib/lib.d.ts +/user/username/projects/reexport/src/pure/session.ts +/user/username/projects/reexport/src/pure/index.ts + +Program root files: ["/user/username/projects/reexport/src/main/index.ts"] +Program options: {"outDir":"/user/username/projects/reexport/out","rootDir":"/user/username/projects/reexport/src","watch":true,"configFilePath":"/user/username/projects/reexport/src/main/tsconfig.json"} +Program files:: +/a/lib/lib.d.ts +/user/username/projects/reexport/out/pure/session.d.ts +/user/username/projects/reexport/out/pure/index.d.ts +/user/username/projects/reexport/src/main/index.ts + +Semantic diagnostics in builder refreshed for:: +/a/lib/lib.d.ts +/user/username/projects/reexport/out/pure/session.d.ts +/user/username/projects/reexport/out/pure/index.d.ts +/user/username/projects/reexport/src/main/index.ts + +WatchedFiles:: +/user/username/projects/reexport/src/pure/tsconfig.json: + {"pollingInterval":250} +/user/username/projects/reexport/src/pure/index.ts: + {"pollingInterval":250} +/user/username/projects/reexport/src/pure/session.ts: + {"pollingInterval":250} +/user/username/projects/reexport/src/main/tsconfig.json: + {"pollingInterval":250} +/user/username/projects/reexport/src/main/index.ts: + {"pollingInterval":250} +/user/username/projects/reexport/src/tsconfig.json: + {"pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/reexport/src/pure: + {"fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/reexport/src/main: + {"fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +Change:: Introduce error + +//// [/user/username/projects/reexport/src/pure/session.ts] +export interface Session { + foo: number; + bar: number; +} + + +//// [/user/username/projects/reexport/out/pure/session.js] file written with same contents +//// [/user/username/projects/reexport/out/pure/session.d.ts] +export interface Session { + foo: number; + bar: number; +} + + +//// [/user/username/projects/reexport/out/pure/index.js] file written with same contents +//// [/user/username/projects/reexport/out/pure/index.d.ts] file written with same contents +//// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../../../../../a/lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "../../src/pure/session.ts": { + "version": "4223553457-export interface Session {\n foo: number;\n bar: number;\n}\n", + "signature": "309257137-export interface Session {\n foo: number;\n bar: number;\n}\n" + }, + "../../src/pure/index.ts": { + "version": "-5356193041-export * from \"./session\";\n", + "signature": "-5356193041-export * from \"./session\";\n" + } + }, + "options": { + "composite": true, + "outDir": "..", + "rootDir": "../../src", + "watch": true, + "configFilePath": "../../src/pure/tsconfig.json" + }, + "referencedMap": { + "../../src/pure/index.ts": [ + "../../src/pure/session.ts" + ] + }, + "exportedModulesMap": { + "../../src/pure/index.ts": [ + "../../src/pure/session.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../../../../../a/lib/lib.d.ts", + "../../src/pure/index.ts", + "../../src/pure/session.ts" + ] + }, + "version": "FakeTSVersion" +} + + +Output:: +>> Screen clear +12:01:05 AM - File change detected. Starting incremental compilation... + + +12:01:06 AM - Project 'src/pure/tsconfig.json' is out of date because oldest output 'out/pure/index.js' is older than newest input 'src/pure/session.ts' + + +12:01:07 AM - Building project '/user/username/projects/reexport/src/pure/tsconfig.json'... + + +12:01:23 AM - Project 'src/main/tsconfig.json' is out of date because oldest output 'out/main/index.js' is older than newest input 'src/pure/tsconfig.json' + + +12:01:24 AM - Building project '/user/username/projects/reexport/src/main/tsconfig.json'... + + +src/main/index.ts(3,14): error TS2741: Property 'bar' is missing in type '{ foo: number; }' but required in type 'Session'. + + +12:01:25 AM - Found 1 error. Watching for file changes. + + +Program root files: ["/user/username/projects/reexport/src/pure/index.ts","/user/username/projects/reexport/src/pure/session.ts"] +Program options: {"composite":true,"outDir":"/user/username/projects/reexport/out","rootDir":"/user/username/projects/reexport/src","watch":true,"configFilePath":"/user/username/projects/reexport/src/pure/tsconfig.json"} +Program files:: +/a/lib/lib.d.ts +/user/username/projects/reexport/src/pure/session.ts +/user/username/projects/reexport/src/pure/index.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/reexport/src/pure/session.ts +/user/username/projects/reexport/src/pure/index.ts + +Program root files: ["/user/username/projects/reexport/src/main/index.ts"] +Program options: {"outDir":"/user/username/projects/reexport/out","rootDir":"/user/username/projects/reexport/src","watch":true,"configFilePath":"/user/username/projects/reexport/src/main/tsconfig.json"} +Program files:: +/a/lib/lib.d.ts +/user/username/projects/reexport/out/pure/session.d.ts +/user/username/projects/reexport/out/pure/index.d.ts +/user/username/projects/reexport/src/main/index.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/reexport/out/pure/session.d.ts +/user/username/projects/reexport/out/pure/index.d.ts +/user/username/projects/reexport/src/main/index.ts + +WatchedFiles:: +/user/username/projects/reexport/src/pure/tsconfig.json: + {"pollingInterval":250} +/user/username/projects/reexport/src/pure/index.ts: + {"pollingInterval":250} +/user/username/projects/reexport/src/pure/session.ts: + {"pollingInterval":250} +/user/username/projects/reexport/src/main/tsconfig.json: + {"pollingInterval":250} +/user/username/projects/reexport/src/main/index.ts: + {"pollingInterval":250} +/user/username/projects/reexport/src/tsconfig.json: + {"pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/reexport/src/pure: + {"fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/reexport/src/main: + {"fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined + +Change:: Fix error + +//// [/user/username/projects/reexport/src/pure/session.ts] +export interface Session { + foo: number; + // bar: number; +} + + +//// [/user/username/projects/reexport/out/pure/session.js] file written with same contents +//// [/user/username/projects/reexport/out/pure/session.d.ts] +export interface Session { + foo: number; +} + + +//// [/user/username/projects/reexport/out/pure/index.js] file written with same contents +//// [/user/username/projects/reexport/out/pure/index.d.ts] file written with same contents +//// [/user/username/projects/reexport/out/pure/tsconfig.tsbuildinfo] +{ + "program": { + "fileInfos": { + "../../../../../../a/lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + }, + "../../src/pure/session.ts": { + "version": "5375279855-export interface Session {\n foo: number;\n // bar: number;\n}\n", + "signature": "-1218067212-export interface Session {\n foo: number;\n}\n" + }, + "../../src/pure/index.ts": { + "version": "-5356193041-export * from \"./session\";\n", + "signature": "-5356193041-export * from \"./session\";\n" + } + }, + "options": { + "composite": true, + "outDir": "..", + "rootDir": "../../src", + "watch": true, + "configFilePath": "../../src/pure/tsconfig.json" + }, + "referencedMap": { + "../../src/pure/index.ts": [ + "../../src/pure/session.ts" + ] + }, + "exportedModulesMap": { + "../../src/pure/index.ts": [ + "../../src/pure/session.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../../../../../a/lib/lib.d.ts", + "../../src/pure/index.ts", + "../../src/pure/session.ts" + ] + }, + "version": "FakeTSVersion" +} + +//// [/user/username/projects/reexport/out/main/index.js] file changed its modified time + +Output:: +>> Screen clear +12:01:29 AM - File change detected. Starting incremental compilation... + + +12:01:30 AM - Project 'src/pure/tsconfig.json' is out of date because oldest output 'out/pure/index.js' is older than newest input 'src/pure/session.ts' + + +12:01:31 AM - Building project '/user/username/projects/reexport/src/pure/tsconfig.json'... + + +12:01:47 AM - Failed to parse file 'src/main/tsconfig.json': Semantic errors. + + +12:01:48 AM - Building project '/user/username/projects/reexport/src/main/tsconfig.json'... + + +12:01:50 AM - Updating unchanged output timestamps of project '/user/username/projects/reexport/src/main/tsconfig.json'... + + + +12:01:51 AM - Found 0 errors. Watching for file changes. + + +Program root files: ["/user/username/projects/reexport/src/pure/index.ts","/user/username/projects/reexport/src/pure/session.ts"] +Program options: {"composite":true,"outDir":"/user/username/projects/reexport/out","rootDir":"/user/username/projects/reexport/src","watch":true,"configFilePath":"/user/username/projects/reexport/src/pure/tsconfig.json"} +Program files:: +/a/lib/lib.d.ts +/user/username/projects/reexport/src/pure/session.ts +/user/username/projects/reexport/src/pure/index.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/reexport/src/pure/session.ts +/user/username/projects/reexport/src/pure/index.ts + +Program root files: ["/user/username/projects/reexport/src/main/index.ts"] +Program options: {"outDir":"/user/username/projects/reexport/out","rootDir":"/user/username/projects/reexport/src","watch":true,"configFilePath":"/user/username/projects/reexport/src/main/tsconfig.json"} +Program files:: +/a/lib/lib.d.ts +/user/username/projects/reexport/out/pure/session.d.ts +/user/username/projects/reexport/out/pure/index.d.ts +/user/username/projects/reexport/src/main/index.ts + +Semantic diagnostics in builder refreshed for:: +/user/username/projects/reexport/out/pure/session.d.ts +/user/username/projects/reexport/out/pure/index.d.ts +/user/username/projects/reexport/src/main/index.ts + +WatchedFiles:: +/user/username/projects/reexport/src/pure/tsconfig.json: + {"pollingInterval":250} +/user/username/projects/reexport/src/pure/index.ts: + {"pollingInterval":250} +/user/username/projects/reexport/src/pure/session.ts: + {"pollingInterval":250} +/user/username/projects/reexport/src/main/tsconfig.json: + {"pollingInterval":250} +/user/username/projects/reexport/src/main/index.ts: + {"pollingInterval":250} +/user/username/projects/reexport/src/tsconfig.json: + {"pollingInterval":250} + +FsWatches:: + +FsWatchesRecursive:: +/user/username/projects/reexport/src/pure: + {"fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} +/user/username/projects/reexport/src/main: + {"fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}} + +exitCode:: ExitStatus.undefined diff --git a/tests/projects/reexport/src/main/index.ts b/tests/projects/reexport/src/main/index.ts new file mode 100644 index 00000000000..bb310921ad3 --- /dev/null +++ b/tests/projects/reexport/src/main/index.ts @@ -0,0 +1,5 @@ +import { Session } from "../pure"; + +export const session: Session = { + foo: 1 +}; diff --git a/tests/projects/reexport/src/main/tsconfig.json b/tests/projects/reexport/src/main/tsconfig.json new file mode 100644 index 00000000000..22cc4548a29 --- /dev/null +++ b/tests/projects/reexport/src/main/tsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "outDir": "../../out", + "rootDir": "../" + }, + "include": ["**/*.ts"], + "references": [{ "path": "../pure" }] +} diff --git a/tests/projects/reexport/src/pure/index.ts b/tests/projects/reexport/src/pure/index.ts new file mode 100644 index 00000000000..3a46e9eab99 --- /dev/null +++ b/tests/projects/reexport/src/pure/index.ts @@ -0,0 +1 @@ +export * from "./session"; diff --git a/tests/projects/reexport/src/pure/session.ts b/tests/projects/reexport/src/pure/session.ts new file mode 100644 index 00000000000..c0b7057ab5c --- /dev/null +++ b/tests/projects/reexport/src/pure/session.ts @@ -0,0 +1,4 @@ +export interface Session { + foo: number; + // bar: number; +} diff --git a/tests/projects/reexport/src/pure/tsconfig.json b/tests/projects/reexport/src/pure/tsconfig.json new file mode 100644 index 00000000000..18574604698 --- /dev/null +++ b/tests/projects/reexport/src/pure/tsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "composite": true, + "outDir": "../../out", + "rootDir": "../" + }, + "include": ["**/*.ts"] +} diff --git a/tests/projects/reexport/src/tsconfig.json b/tests/projects/reexport/src/tsconfig.json new file mode 100644 index 00000000000..d46051de26e --- /dev/null +++ b/tests/projects/reexport/src/tsconfig.json @@ -0,0 +1,5 @@ +{ + "files": [], + "include": [], + "references": [{ "path": "./pure" }, { "path": "./main" }] +}